From 09791bddd3a963ae94ac0405f82b849fe2449641 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Mon, 21 Feb 2011 23:55:21 +0100 Subject: More informations on the feed page. --- pyAggr3g470r.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 += """
""" - html += "

The feed " + feed.feed_title + " contains " + str(feed.nb_articles) + " articles.

" + html += "

The feed " + feed.feed_title + " contains " + str(feed.nb_articles) + " articles. " + html += "Representing " + str((round(float(feed.nb_articles) / self.nb_articles, 4)) * 100) + " % of the total " + html += "(" + str(self.nb_articles) + ").

" html += "

" + (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] + ".

" + if feed.mail == "1": + html += """

You are receiving articles from this feed to the address: %s. """ % \ + (utils.mail_to, utils.mail_to) + html += """Stop receiving articles from this feed.

""" % \ + (feed.feed_id, ) + html += "

Recent articles:

" for article in feed.articles.values()[:10]: if article.article_readed == "0": -- cgit