aboutsummaryrefslogtreecommitdiff
path: root/source/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-20 10:14:00 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-20 10:14:00 +0100
commit11d24ceb6b0eecdbe55dbf65c223fab4cd342969 (patch)
tree5c69625ee2abb35378c13a5fdbcaf65a2138e658 /source/templates
parentMinor changes in mongodb.py: comments + __main__ section. (diff)
downloadnewspipe-11d24ceb6b0eecdbe55dbf65c223fab4cd342969.tar.gz
newspipe-11d24ceb6b0eecdbe55dbf65c223fab4cd342969.tar.bz2
newspipe-11d24ceb6b0eecdbe55dbf65c223fab4cd342969.zip
Minor bugfix in index.html template: feed['mail'] == True if mail notification is active for a feed.
Diffstat (limited to 'source/templates')
-rw-r--r--source/templates/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/templates/index.html b/source/templates/index.html
index 87ba7815..9539f4dc 100644
--- a/source/templates/index.html
+++ b/source/templates/index.html
@@ -97,7 +97,7 @@ import utils
if mongo.nb_unread_articles(feed["feed_id"]) != 0:
html += """&nbsp;&nbsp;<a href="/mark_as_read/Feed_FromMainPage:%s">Mark all as read</a>""" % (feed["feed_id"],)
html += """&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/unread/%s" title="Unread article(s)">Unread article(s) (%s)</a>""" % (feed["feed_id"], mongo.nb_unread_articles(feed["feed_id"]))
- if feed["mail"] == "0":
+ if feed["mail"] == False:
html += """<br />\n<a href="/mail_notification/1:%s" title="By e-mail">Stay tuned</a>""" % (feed["feed_id"],)
else:
html += """<br />\n<a href="/mail_notification/0:%s" title="By e-mail">Stop staying tuned</a>""" % (feed["feed_id"],)
bgstack15