diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-23 14:17:08 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-23 14:17:08 +0200 |
commit | 5b0be6a9da610a6fd89a120d37cfe94f606ee04a (patch) | |
tree | fb9fb3fa258cb12733f0ce16839c6da77ad9393c /pyaggr3g470r/templates/home.html | |
parent | New list menu for feeds. (diff) | |
download | newspipe-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.html | 2 |
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> |