1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 20:55:10 +01:00

Support read-only/editable and show/hide tags per view

This commit is contained in:
2018-03-17 15:01:44 +01:00
parent c6089f1caa
commit 46aa230fae
2 changed files with 14 additions and 1 deletions

View File

@@ -476,7 +476,16 @@ def bookmarks(userkey, filtermethod = None, sortmethod = None):
bookmarks = Bookmark.select().where(Bookmark.userkey == userkey, Bookmark.status == Bookmark.VISIBLE).order_by(Bookmark.created_date.desc())
theme = get_theme(userkey)
return render_template('bookmarks.html', bookmarks=bookmarks, userkey=userkey, tags=tags, filter_text=filter_text, message=message, theme=theme)
return render_template('bookmarks.html',
bookmarks=bookmarks,
userkey=userkey,
tags=tags,
filter_text=filter_text,
message=message,
theme=theme,
editable=True, # bookmarks can be edited
showtags=True, # tags should be shown with the bookmarks
)