aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index f0a2182a..661d3251 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -42,6 +42,8 @@ path = {'/css/style.css': {'tools.staticfile.on': True, \
'tools.staticfile.filename':utils.path+'css/img/heart.png'}, \
'/css/img/heart_open.png': {'tools.staticfile.on': True, \
'tools.staticfile.filename':utils.path+'css/img/heart_open.png'}, \
+ '/css/img/email.png': {'tools.staticfile.on': True, \
+ 'tools.staticfile.filename':utils.path+'css/img/email.png'}, \
'/var/histogram.png':{'tools.staticfile.on': True, \
'tools.staticfile.filename':utils.path+'var/histogram.png'}}
@@ -72,6 +74,12 @@ class Root:
html += self.create_right_menu()
html += """<div class="left inner">\n"""
+ if self.articles:
+ html += """<a href="/list_like/"><img src="/css/img/heart.png" title="Your favorites (%s)" /></a>\n""" % \
+ sum([len([article for article in self.articles[feed_id] if article[7]=="1"]) for feed_id in self.feeds.keys()])
+
+ html += """<a href="/list_notification"><img src="/css/img/email.png" title="Active e-mail notifications" /></a>\n"""
+
for rss_feed_id in self.articles.keys():
html += """<h2><a name="%s"><a href="%s" rel="noreferrer"
target="_blank">%s</a></a>
bgstack15