diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-22 11:13:35 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-22 11:13:35 +0100 |
commit | 6f23971c2ae3b926c4714cbe5ae1fc7263d7133b (patch) | |
tree | f6c37b8c35a058efb92d8d945438ab5f2960a202 | |
parent | Improvement in the /feed view. (diff) | |
download | newspipe-6f23971c2ae3b926c4714cbe5ae1fc7263d7133b.tar.gz newspipe-6f23971c2ae3b926c4714cbe5ae1fc7263d7133b.tar.bz2 newspipe-6f23971c2ae3b926c4714cbe5ae1fc7263d7133b.zip |
The management page indicates if e-mail notification is disabled.
-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> |