From 6f23971c2ae3b926c4714cbe5ae1fc7263d7133b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 22 Jan 2013 11:13:35 +0100 Subject: The management page indicates if e-mail notification is disabled. --- source/pyAggr3g470r.py | 3 ++- source/templates/management.html | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'source') 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 @@ + %endif + + %if not mail_notification_enabled: +

E-mail notification is disabled in the configuration file.

+ %endif + + %if feeds:

Facts

%endif + %if not mail_notification_enabled: +

E-mail notification is disabled in the configuration file.

+ %endif +

Account

@@ -69,4 +80,4 @@ -

\ No newline at end of file +

-- cgit