aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-22 11:13:35 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-22 11:13:35 +0100
commit6f23971c2ae3b926c4714cbe5ae1fc7263d7133b (patch)
treef6c37b8c35a058efb92d8d945438ab5f2960a202 /source
parentImprovement in the /feed view. (diff)
downloadnewspipe-6f23971c2ae3b926c4714cbe5ae1fc7263d7133b.tar.gz
newspipe-6f23971c2ae3b926c4714cbe5ae1fc7263d7133b.tar.bz2
newspipe-6f23971c2ae3b926c4714cbe5ae1fc7263d7133b.zip
The management page indicates if e-mail notification is disabled.
Diffstat (limited to 'source')
-rwxr-xr-xsource/pyAggr3g470r.py3
-rw-r--r--source/templates/management.html13
2 files changed, 14 insertions, 2 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index fc463367..33507adc 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -138,7 +138,8 @@ class pyAggr3g470r(object):
tmpl = lookup.get_template("management.html")
return tmpl.render(feeds=feeds, nb_mail_notifications=nb_mail_notifications, \
nb_favorites=nb_favorites, nb_articles=nb_articles, \
- nb_unread_articles=nb_unread_articles)
+ nb_unread_articles=nb_unread_articles, \
+ mail_notification_enabled=conf.MAIL_ENABLED)
management.exposed = True
diff --git a/source/templates/management.html b/source/templates/management.html
index b32f7b3b..4d709b0b 100644
--- a/source/templates/management.html
+++ b/source/templates/management.html
@@ -20,6 +20,13 @@
</select>
<input type="submit" value="OK">
</form>
+ %endif
+
+ %if not mail_notification_enabled:
+ <p>E-mail notification is disabled in the configuration file.</p>
+ %endif
+
+ %if feeds:
<hr />
<h1>Facts</h1>
<ul>
@@ -30,6 +37,10 @@
</ul>
%endif
+ %if not mail_notification_enabled:
+ <p>E-mail notification is disabled in the configuration file.</p>
+ %endif
+
<hr />
<h1>Account</h1>
@@ -69,4 +80,4 @@
</select>
<input type="submit" value="Export">
</form>
- </p> \ No newline at end of file
+ </p>
bgstack15