aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/img/email.pngbin0 -> 556 bytes
-rw-r--r--css/img/heart.pngbin0 -> 634 bytes
-rw-r--r--css/img/heart_open.pngbin0 -> 687 bytes
-rwxr-xr-xpyAggr3g470r.py8
4 files changed, 8 insertions, 0 deletions
diff --git a/css/img/email.png b/css/img/email.png
new file mode 100644
index 00000000..f2c0084b
--- /dev/null
+++ b/css/img/email.png
Binary files differ
diff --git a/css/img/heart.png b/css/img/heart.png
new file mode 100644
index 00000000..f36f3cfd
--- /dev/null
+++ b/css/img/heart.png
Binary files differ
diff --git a/css/img/heart_open.png b/css/img/heart_open.png
new file mode 100644
index 00000000..e1c6e027
--- /dev/null
+++ b/css/img/heart_open.png
Binary files differ
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