aboutsummaryrefslogtreecommitdiff
path: root/src/web
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
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')
-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