aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-06 08:01:52 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-06 08:01:52 +0200
commit7312031dbc8ab5e15c329ae97295cb4c0982fd5e (patch)
tree58b30ec76bccde5dd9bffcbfaad6778327da6b0b /src/web/views/views.py
parentDisplays if the the instance is running on Heroku. (diff)
downloadnewspipe-7312031dbc8ab5e15c329ae97295cb4c0982fd5e.tar.gz
newspipe-7312031dbc8ab5e15c329ae97295cb4c0982fd5e.tar.bz2
newspipe-7312031dbc8ab5e15c329ae97295cb4c0982fd5e.zip
Added registration status.
Diffstat (limited to 'src/web/views/views.py')
-rw-r--r--src/web/views/views.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/web/views/views.py b/src/web/views/views.py
index 0a785ceb..03d6501d 100644
--- a/src/web/views/views.py
+++ b/src/web/views/views.py
@@ -83,7 +83,8 @@ def about():
@etag_match
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())
+ newspipe_version=__version__.split()[1],
+ on_heroku=[conf.ON_HEROKU and 'Yes' or 'No'][0],
+ registration=[conf.SELF_REGISTRATION and 'Open' or 'Closed'][0],
+ python_version="{}.{}.{}".format(*sys.version_info[:3]),
+ nb_users=UserController().read().count())
bgstack15