From de897657479e9a97e8d7e0728a104bdb951c542b Mon Sep 17 00:00:00 2001 From: pluja Date: Sat, 5 Sep 2020 13:28:57 +0200 Subject: [PATCH] Add name on instance info --- app/routes.py | 3 ++- app/templates/settings.html | 2 +- yotter-config.json | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index 8fdf355..cee0d38 100644 --- a/app/routes.py +++ b/app/routes.py @@ -392,7 +392,8 @@ def logout(): def settings(): instanceInfo = { "totalUsers":db.session.query(User).count(), - "location":config['serverLocation'] + "location":config['serverLocation'], + "serverName":config['serverName'] } return render_template('settings.html', info=instanceInfo) diff --git a/app/templates/settings.html b/app/templates/settings.html index c61ff0a..3cbc040 100644 --- a/app/templates/settings.html +++ b/app/templates/settings.html @@ -79,7 +79,7 @@ --> -

Instance Info

+

{{info.serverName}} Info

Total users: {{info.totalUsers}}

diff --git a/yotter-config.json b/yotter-config.json index 0a2db79..e0ef1e3 100644 --- a/yotter-config.json +++ b/yotter-config.json @@ -1,4 +1,5 @@ { + "serverName": "Yotter.xyz", "nitterInstance": "https://nitter.net/", "maxInstanceUsers": 10, "serverLocation": "Germany"