diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-04-06 07:57:09 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-04-06 07:57:09 +0200 |
commit | bb71e242b67b8bf7baca1ca1c4f47624ffd77738 (patch) | |
tree | a04cde962b2e13fa5b0c80f39eae8447ea6ec121 /src/web | |
parent | Removed now useless endpoint. (diff) | |
download | newspipe-bb71e242b67b8bf7baca1ca1c4f47624ffd77738.tar.gz newspipe-bb71e242b67b8bf7baca1ca1c4f47624ffd77738.tar.bz2 newspipe-bb71e242b67b8bf7baca1ca1c4f47624ffd77738.zip |
Displays if the the instance is running on Heroku.
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/templates/about_more.html | 1 | ||||
-rw-r--r-- | src/web/views/views.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/web/templates/about_more.html b/src/web/templates/about_more.html index 0b934aab..47c321ca 100644 --- a/src/web/templates/about_more.html +++ b/src/web/templates/about_more.html @@ -3,6 +3,7 @@ <div class="container"> <ul class="list-group"> <li class="list-group-item">Newspipe version: <a href="https://github.com/newspipe/newspipe/releases/tag/{{newspipe_version}}">{{newspipe_version}}</a></li> + <li class="list-group-item">Running on Heroku: {{on_heroku}}</li> <li class="list-group-item">Python version: {{python_version}}</li> <li class="list-group-item">Number of users: {{nb_users}}</li> </ul> diff --git a/src/web/views/views.py b/src/web/views/views.py index 4dffdf37..0a785ceb 100644 --- a/src/web/views/views.py +++ b/src/web/views/views.py @@ -7,6 +7,7 @@ from flask import (request, render_template, flash, from flask_babel import gettext from sqlalchemy import desc +import conf from web import __version__ from conf import API_ROOT, ADMIN_EMAIL from web.controllers import FeedController, UserController @@ -83,5 +84,6 @@ def about(): def about_more(): return render_template('about_more.html', newspipe_version=__version__.split()[1], + on_heroku=[conf.ON_HEROKU and 'Yes' or 'No'][0], python_version="{}.{}.{}".format(*sys.version_info[:3]), nb_users=UserController().read().count()) |