aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/home.html
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-23 14:17:08 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-23 14:17:08 +0200
commit5b0be6a9da610a6fd89a120d37cfe94f606ee04a (patch)
treefb9fb3fa258cb12733f0ce16839c6da77ad9393c /pyaggr3g470r/templates/home.html
parentNew list menu for feeds. (diff)
downloadnewspipe-5b0be6a9da610a6fd89a120d37cfe94f606ee04a.tar.gz
newspipe-5b0be6a9da610a6fd89a120d37cfe94f606ee04a.tar.bz2
newspipe-5b0be6a9da610a6fd89a120d37cfe94f606ee04a.zip
Only display count when there are unread articles.
Diffstat (limited to 'pyaggr3g470r/templates/home.html')
-rw-r--r--pyaggr3g470r/templates/home.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html
index b254d38d..6bcd08fb 100644
--- a/pyaggr3g470r/templates/home.html
+++ b/pyaggr3g470r/templates/home.html
@@ -7,7 +7,7 @@
{% for feed in result|sort(attribute="title") %}
<li>
<a href="#{{ feed.id }}">
- <span class="badge pull-right">{{ unread[feed.id] }}</span>
+ {% if unread[feed.id] != 0 %}<span class="badge pull-right">{{ unread[feed.id] }}</span>{% endif %}
{{ feed.title|safe }}
</a>
</li>
bgstack15