aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-23 21:36:12 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-23 21:36:12 +0200
commit5936c6aba13e682a0386564bf5798c19dae35819 (patch)
treebefa0f2deaab5f02e6851670f2f7166ed4616ca6 /src/web
parentImproved display of bookmark's tags. And fixed some remainings merge related ... (diff)
downloadnewspipe-5936c6aba13e682a0386564bf5798c19dae35819.tar.gz
newspipe-5936c6aba13e682a0386564bf5798c19dae35819.tar.bz2
newspipe-5936c6aba13e682a0386564bf5798c19dae35819.zip
tags are lowercase
Diffstat (limited to 'src/web')
-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