aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-11-24 11:42:31 +0100
committercedricbonhomme <devnull@localhost>2010-11-24 11:42:31 +0100
commit47ebc2bc3e01456550e854057027f090f6dffc9c (patch)
tree2d13ce56088a0c8e471dd2afb9d998bc3033df23
parentInput modification: autocomplete, maxlength. (diff)
downloadnewspipe-47ebc2bc3e01456550e854057027f090f6dffc9c.tar.gz
newspipe-47ebc2bc3e01456550e854057027f090f6dffc9c.tar.bz2
newspipe-47ebc2bc3e01456550e854057027f090f6dffc9c.zip
Hide 'mark as read button' when useless.
-rwxr-xr-xpyAggr3g470r.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 9b9dae86..2e037d6a 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -140,8 +140,8 @@ class Root:
(self.nb_mail_notifications,)
html += '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
- html += '<a href="/mark_as_read/All"><img src="/css/img/mark-as-read.png" title="Mark articles as read" /></a>\n'
if self.nb_unread_articles != 0:
+ html += '<a href="/mark_as_read/All"><img src="/css/img/mark-as-read.png" title="Mark articles as read" /></a>\n'
html += """<a href="/unread/All"><img src="/css/img/unread.png" title="Unread article(s): %s" /></a>\n""" % \
(self.nb_unread_articles,)
html += '<a href="/fetch/"><img src="/css/img/check-news.png" title="Check for news" /></a>\n'
bgstack15