aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-02-22 07:59:15 +0100
committercedricbonhomme <devnull@localhost>2011-02-22 07:59:15 +0100
commite3dee7685274f54fd41fa9986c0ded8e93a3abdb (patch)
tree8cd06c442fe3d5d492613152b1b8362c0d28b1ac /pyAggr3g470r.py
parentMore informations on the feed page. (diff)
downloadnewspipe-e3dee7685274f54fd41fa9986c0ded8e93a3abdb.tar.gz
newspipe-e3dee7685274f54fd41fa9986c0ded8e93a3abdb.tar.bz2
newspipe-e3dee7685274f54fd41fa9986c0ded8e93a3abdb.zip
List of favorites articles by feed on the feed summary page.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py22
1 files changed, 21 insertions, 1 deletions
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 += """<a href="/mail_notification/0:%s">Stop</a> receiving articles from this feed.</p>""" % \
(feed.feed_id, )
- html += "<br /><p>Recent articles:</p>"
+ html += "<br /><h1>Recent articles</h1>"
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 += "<br />\n"
html += """<a href="/articles/%s">All articles</a>&nbsp;&nbsp;&nbsp;""" % (feed.feed_id,)
+
+ html += "<br /></br /><h1>Your favorites articles for this feed</h1>"
+ 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 + " - " + \
+ """<a class="tooltip" href="/article/%s:%s" rel="noreferrer" target="_blank">%s<span class="classic">%s</span></a><br />\n""" % \
+ (feed.feed_id, article.article_id, article.article_title[:150], description)
+
+
+
+
html += "<hr />"
html += htmlfooter
return html
bgstack15