aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
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