diff --git a/digimarks.py b/digimarks.py index ee3f959..750852d 100644 --- a/digimarks.py +++ b/digimarks.py @@ -252,14 +252,14 @@ def editbookmark(userkey, urlhash): # bookmark = getbyurlhash() bookmark = Bookmark.get(Bookmark.url_hash == urlhash, Bookmark.userkey == userkey) message = request.args.get('message') - return render_template('edit.html', action='Edit bookmark', userkey=userkey, bookmark=bookmark, message=message, formaction='edit') + return render_template('edit.html', action='Edit bookmark', userkey=userkey, bookmark=bookmark, message=message, formaction='edit', tags=all_tags[userkey]) @app.route('//add') def addbookmark(userkey): """ Bookmark add form """ bookmark = Bookmark(title='', url='', tags='') - return render_template('edit.html', action='Add bookmark', userkey=userkey, bookmark=bookmark) + return render_template('edit.html', action='Add bookmark', userkey=userkey, bookmark=bookmark, tags=all_tags[userkey]) def updatebookmark(userkey, request, urlhash = None): diff --git a/templates/base.html b/templates/base.html index 1c20d95..b56d1fa 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,6 +19,7 @@ +