diff options
Diffstat (limited to 'src/web/templates')
-rw-r--r-- | src/web/templates/bookmarks.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/web/templates/bookmarks.html b/src/web/templates/bookmarks.html index ee93253c..6e79bed2 100644 --- a/src/web/templates/bookmarks.html +++ b/src/web/templates/bookmarks.html @@ -6,10 +6,12 @@ {{ pagination.info }} </div> <div class="col-md-6 text-right"> - <a class="text-muted" href="{{ url_for('bookmarks.list_') }}">all</a> ⸱ - <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'private' }}">private</a> ⸱ - <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'public' }}">public</a> ⸱ - <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'unread' }}">unread</a> + {% if current_user.is_authenticated %} + <a class="text-muted" href="{{ url_for('bookmarks.list_') }}">all</a> ⸱ + <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'private' }}">private</a> ⸱ + <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'public' }}">public</a> ⸱ + <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'unread' }}">unread</a> + {% endif %} </div> </div> {{ pagination.links }} @@ -24,8 +26,10 @@ <div class="text-muted">{{ bookmark.description }}</div> <div>{{ " ".join(bookmark.tags_proxy) }}</div> {{ bookmark.time }} - <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> + {% 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> |