From a4460d1a51312fdcb4ead154a3f6ff97c0c60234 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Thu, 23 Sep 2010 10:13:34 +0200 Subject: Only display icon of unread articles when there are unread articles. --- pyAggr3g470r.py | 5 +++-- 1 file 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 += """\n""" % \ (self.nb_mail_notifications,) - html += """\n""" % \ - (self.nb_unread_articles,) + if self.nb_unread_articles != 0: + html += """\n""" % \ + (self.nb_unread_articles,) # The main page display all the feeds. -- cgit