aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-06 07:57:09 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-06 07:57:09 +0200
commitbb71e242b67b8bf7baca1ca1c4f47624ffd77738 (patch)
treea04cde962b2e13fa5b0c80f39eae8447ea6ec121 /src/web/views
parentRemoved now useless endpoint. (diff)
downloadnewspipe-bb71e242b67b8bf7baca1ca1c4f47624ffd77738.tar.gz
newspipe-bb71e242b67b8bf7baca1ca1c4f47624ffd77738.tar.bz2
newspipe-bb71e242b67b8bf7baca1ca1c4f47624ffd77738.zip
Displays if the the instance is running on Heroku.
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/views.py2
1 files changed, 2 insertions, 0 deletions
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())
bgstack15