aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/templates/about_more.html1
-rw-r--r--src/web/views/views.py2
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())
bgstack15