diff options
author | cedricbonhomme <devnull@localhost> | 2011-02-21 23:55:21 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2011-02-21 23:55:21 +0100 |
commit | 09791bddd3a963ae94ac0405f82b849fe2449641 (patch) | |
tree | 01d0260948be04a6ed3fae10437bf415c017c4c6 | |
parent | tagging release w.t.f. (diff) | |
download | newspipe-09791bddd3a963ae94ac0405f82b849fe2449641.tar.gz newspipe-09791bddd3a963ae94ac0405f82b849fe2449641.tar.bz2 newspipe-09791bddd3a963ae94ac0405f82b849fe2449641.zip |
More informations on the feed page.
-rwxr-xr-x | pyAggr3g470r.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 7745a184..ab606dd4 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -527,9 +527,17 @@ class Root: html = htmlheader() 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>The feed <b>" + feed.feed_title + "</b> contains <b>" + str(feed.nb_articles) + "</b> articles. " + html += "Representing " + str((round(float(feed.nb_articles) / self.nb_articles, 4)) * 100) + " % of the total " + html += "(" + str(self.nb_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>" + if feed.mail == "1": + html += """<p>You are receiving articles from this feed to the address: <a href="mail:%s">%s</a>. """ % \ + (utils.mail_to, utils.mail_to) + html += """<a href="/mail_notification/0:%s">Stop</a> receiving articles from this feed.</p>""" % \ + (feed.feed_id, ) + html += "<br /><p>Recent articles:</p>" for article in feed.articles.values()[:10]: if article.article_readed == "0": |