diff options
Diffstat (limited to 'source')
-rwxr-xr-x | source/pyAggr3g470r.py | 3 | ||||
-rw-r--r-- | source/templates/management.html | 13 |
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> |