diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-20 10:14:00 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-20 10:14:00 +0100 |
commit | 11d24ceb6b0eecdbe55dbf65c223fab4cd342969 (patch) | |
tree | 5c69625ee2abb35378c13a5fdbcaf65a2138e658 /source/templates/index.html | |
parent | Minor changes in mongodb.py: comments + __main__ section. (diff) | |
download | newspipe-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/index.html')
-rw-r--r-- | source/templates/index.html | 2 |
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 += """ <a href="/mark_as_read/Feed_FromMainPage:%s">Mark all as read</a>""" % (feed["feed_id"],) html += """ <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"],) |