From e3dee7685274f54fd41fa9986c0ded8e93a3abdb Mon Sep 17 00:00:00 2001
From: cedricbonhomme
Date: Tue, 22 Feb 2011 07:59:15 +0100
Subject: List of favorites articles by feed on the feed summary page.
---
pyAggr3g470r.py | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index ab606dd4..7cce0064 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -538,7 +538,7 @@ class Root:
html += """Stop receiving articles from this feed.
""" % \
(feed.feed_id, )
- html += "
Recent articles:
"
+ html += "
Recent articles
"
for article in feed.articles.values()[:10]:
if article.article_readed == "0":
# not readed articles are in bold
@@ -572,6 +572,26 @@ class Root:
html += "
\n"
html += """All articles """ % (feed.feed_id,)
+
+ html += "
Your favorites articles for this feed
"
+ for article in feed.articles.values():
+ if article.like == "1":
+ # descrition for the CSS ToolTips
+ article_content = utils.clear_string(article.article_description)
+ if article_content:
+ description = " ".join(article_content[:500].split(' ')[:-1])
+ else:
+ description = "No description."
+
+ # a description line per article (date, title of the article and
+ # CSS description tooltips on mouse over)
+ html += article.article_date + " - " + \
+ """%s%s
\n""" % \
+ (feed.feed_id, article.article_id, article.article_title[:150], description)
+
+
+
+
html += "
"
html += htmlfooter
return html
--
cgit