aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-09-23 10:13:34 +0200
committercedricbonhomme <devnull@localhost>2010-09-23 10:13:34 +0200
commita4460d1a51312fdcb4ead154a3f6ff97c0c60234 (patch)
tree3eacfc5a3672b0ff6c02849d97d1dcf821477e0e
parentAdded a new icon for unread article(s). (diff)
downloadnewspipe-a4460d1a51312fdcb4ead154a3f6ff97c0c60234.tar.gz
newspipe-a4460d1a51312fdcb4ead154a3f6ff97c0c60234.tar.bz2
newspipe-a4460d1a51312fdcb4ead154a3f6ff97c0c60234.zip
Only display icon of unread articles when there are unread articles.
-rwxr-xr-xpyAggr3g470r.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index e024b3f2..7812b4b9 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -105,8 +105,9 @@ class Root:
html += """<a href="/list_notification"><img src="/css/img/email-follow.png" title="Active e-mail notifications (%s)" /></a>\n""" % \
(self.nb_mail_notifications,)
- html += """<a href="/unread/All"><img src="/css/img/email-unread.png" title="Unread article(s): %s" /></a>\n""" % \
- (self.nb_unread_articles,)
+ if self.nb_unread_articles != 0:
+ html += """<a href="/unread/All"><img src="/css/img/email-unread.png" title="Unread article(s): %s" /></a>\n""" % \
+ (self.nb_unread_articles,)
# The main page display all the feeds.
bgstack15