aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-02-21 23:16:35 +0100
committercedricbonhomme <devnull@localhost>2011-02-21 23:16:35 +0100
commit00c1eaaabc5f0a6f23c4ea8888884e347ea13cd2 (patch)
treed96b75df029002e0fbc04abfd92cea7c721609d2
parentAdded new link (feed summary) on the main page. (diff)
downloadnewspipe-00c1eaaabc5f0a6f23c4ea8888884e347ea13cd2.tar.gz
newspipe-00c1eaaabc5f0a6f23c4ea8888884e347ea13cd2.tar.bz2
newspipe-00c1eaaabc5f0a6f23c4ea8888884e347ea13cd2.zip
tagging release w.t.f.
-rwxr-xr-xpyAggr3g470r.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index da14dc0a..7745a184 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -528,6 +528,8 @@ class Root:
html += htmlnav
html += """<div class="left inner">"""
html += "<p>The feed <b>" + feed.feed_title + "</b> contains <b>" + str(feed.nb_articles) + "</b> articles.</p>"
+ html += "<p>" + (feed.nb_unread_articles == 0 and ["All articles are read"] or [str(feed.nb_unread_articles) + \
+ " unread article" + (feed.nb_unread_articles == 1 and [""] or ["s"])[0]])[0] + ".</p>"
html += "<br /><p>Recent articles:</p>"
for article in feed.articles.values()[:10]:
if article.article_readed == "0":
bgstack15