mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Show tags on bookmarks overview
This commit is contained in:
@@ -190,7 +190,8 @@ def bookmarks(userkey):
|
||||
#else:
|
||||
# abort(404)
|
||||
bookmarks = Bookmark.select().where(Bookmark.userkey == userkey)
|
||||
return render_template('bookmarks.html', bookmarks=bookmarks, userkey=userkey)
|
||||
tags = get_tags_for_user(userkey)
|
||||
return render_template('bookmarks.html', bookmarks=bookmarks, userkey=userkey, tags=tags)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,6 +2,16 @@
|
||||
{% block title %}Bookmarks{% endblock %}
|
||||
{% block pageheader %}Bookmarks{% endblock %}
|
||||
{% block pagecontent %}
|
||||
{% if tags %}
|
||||
<div class="row">
|
||||
{% for tag in tags %}
|
||||
<div class="chip">
|
||||
<a href="{{ url_for('tag', userkey=userkey, tag=tag) }}">{{ tag }}</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="row">
|
||||
{% for bookmark in bookmarks %}
|
||||
<div class="col s12 m6 l4">
|
||||
|
||||
Reference in New Issue
Block a user