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:
11
digimarks.py
11
digimarks.py
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user