aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/web/templates/about_more.html1
-rw-r--r--src/web/views/views.py9
2 files changed, 6 insertions, 4 deletions
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 @@
<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">Registration: {{registration}}</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 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