aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/web/controllers/tag.py4
-rw-r--r--src/web/templates/bookmarks.html4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/web/controllers/tag.py b/src/web/controllers/tag.py
index a40387c9..203e9a7e 100644
--- a/src/web/controllers/tag.py
+++ b/src/web/controllers/tag.py
@@ -15,5 +15,9 @@ class BookmarkTagController(AbstractController):
def count_by_href(self, **filters):
return self._count_by(BookmarkTag.text, filters)
+ def create(self, **attrs):
+ attrs['text'] = attrs['text'].lower()
+ return super().create(**attrs)
+
def update(self, filters, attrs):
return super().update(filters, attrs)
diff --git a/src/web/templates/bookmarks.html b/src/web/templates/bookmarks.html
index 40a7e7b9..6b727a16 100644
--- a/src/web/templates/bookmarks.html
+++ b/src/web/templates/bookmarks.html
@@ -10,8 +10,8 @@
<a href="{{ bookmark.href }}">{{ bookmark.title }}</a>
</h4>
<p class="list-group-item-text">
- {{ bookmark.description }}<br />
- {{ ", ".join(bookmark.tags_proxy) }}
+ <div class="text-muted">{{ bookmark.description }}</div>
+ {{ " ".join(bookmark.tags_proxy) }}
<a href="{{ url_for('bookmark.form', bookmark_id=bookmark.id) }}">edit</a>
</p>
</a>
bgstack15