aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-04-15 13:41:42 +0200
committercedricbonhomme <devnull@localhost>2010-04-15 13:41:42 +0200
commite011b9fed970eb51decff2465a0d4441670f077d (patch)
tree07a0c9b66a57eb0d01b06ada71a2b63d346ecc96 /pyAggr3g470r.py
parentMark or unmark an article as favorites. (diff)
downloadnewspipe-e011b9fed970eb51decff2465a0d4441670f077d.tar.gz
newspipe-e011b9fed970eb51decff2465a0d4441670f077d.tar.bz2
newspipe-e011b9fed970eb51decff2465a0d4441670f077d.zip
Added images and two links on the main page.
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