aboutsummaryrefslogtreecommitdiff
path: root/newspipe/web/templates/bookmarks.html
diff options
context:
space:
mode:
Diffstat (limited to 'newspipe/web/templates/bookmarks.html')
-rw-r--r--newspipe/web/templates/bookmarks.html74
1 files changed, 74 insertions, 0 deletions
diff --git a/newspipe/web/templates/bookmarks.html b/newspipe/web/templates/bookmarks.html
new file mode 100644
index 00000000..a3ec4580
--- /dev/null
+++ b/newspipe/web/templates/bookmarks.html
@@ -0,0 +1,74 @@
+{% extends "layout.html" %}
+{% block content %}
+<div class="container">
+ <div class="row">
+ <div class="col-md-6">
+ {{ pagination.info }}
+ </div>
+ <div class="col-md-6 text-right">
+ {% if current_user.is_authenticated %}
+ <a class="text-muted" href="{{ url_for('bookmarks.list_') }}">all</a>&nbsp;⸱&nbsp;
+ <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'private' }}">private</a>&nbsp;⸱&nbsp;
+ <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'public' }}">public</a>&nbsp;⸱&nbsp;
+ <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'unread' }}">unread</a>
+ {% endif %}
+ </div>
+ </div>
+ <br />
+ <div class="row">
+ <div class="col-md-6">
+ {% if tag %}
+ <span class="glyphicon glyphicon-tags" aria-hidden="true"></span>&nbsp;&nbsp;{{ tag }}
+ {% endif %}
+ {% if query %}
+ <span class="glyphicon glyphicon-search" aria-hidden="true"></span>&nbsp;&nbsp;{{ query }}
+ {% endif %}
+ </div>
+ <div class="col-md-6 text-right">
+ <form method="GET">
+ <div class="form-inline">
+ <input type="text" name="query" class="form-control" />
+ <button type="submit" class="btn btn-default">Search</button>
+ </div>
+ </form>
+ </div>
+ </div>
+ <br />
+ <div class="row">
+ <div class="col-md-8">
+ {{ pagination.links }}
+ </div>
+ </div>
+
+ <div class="row">
+ <div class="col-md-8">
+ <ul class="list-group">
+ {% for bookmark in bookmarks %}
+ <li class="list-group-item">
+ <a href="#">
+ <h4 class="list-group-item-heading">
+ <a href="{{ bookmark.href }}">{{ bookmark.title }}</a>
+ </h4>
+ <p class="list-group-item-text">
+ <div class="text-muted">{{ bookmark.description }}</div>
+ <div>{% for tag in bookmark.tags %}<a href="{{ url_for('bookmarks.list_', tag=tag.text) }}">{{ tag.text }}&nbsp;</a>{% endfor %}</div>
+ {{ bookmark.time | datetime }}
+ {% if current_user.is_authenticated %}
+ <a class="text-muted" href="{{ url_for('bookmark.form', bookmark_id=bookmark.id) }}">edit</a>
+ <a class="text-muted" href="{{ url_for('bookmark.delete', bookmark_id=bookmark.id) }}">delete</a>
+ {% endif %}
+ </p>
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
+ <br />
+ <div class="row">
+ <div class="col-md-8">
+ {{ pagination.links }}
+ </div>
+ </div>
+</div><!-- /.container -->
+{% endblock %}
bgstack15