From 7312031dbc8ab5e15c329ae97295cb4c0982fd5e Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 6 Apr 2017 08:01:52 +0200 Subject: Added registration status. --- src/web/templates/about_more.html | 1 + src/web/views/views.py | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/web') diff --git a/src/web/templates/about_more.html b/src/web/templates/about_more.html index 47c321ca..dd7088a5 100644 --- a/src/web/templates/about_more.html +++ b/src/web/templates/about_more.html @@ -4,6 +4,7 @@ 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()) -- cgit