diff options
author | cedricbonhomme <devnull@localhost> | 2010-09-23 10:13:34 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-09-23 10:13:34 +0200 |
commit | a4460d1a51312fdcb4ead154a3f6ff97c0c60234 (patch) | |
tree | 3eacfc5a3672b0ff6c02849d97d1dcf821477e0e /pyAggr3g470r.py | |
parent | Added a new icon for unread article(s). (diff) | |
download | newspipe-a4460d1a51312fdcb4ead154a3f6ff97c0c60234.tar.gz newspipe-a4460d1a51312fdcb4ead154a3f6ff97c0c60234.tar.bz2 newspipe-a4460d1a51312fdcb4ead154a3f6ff97c0c60234.zip |
Only display icon of unread articles when there are unread articles.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-x | pyAggr3g470r.py | 5 |
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. |