Add instance info on settings
This commit is contained in:
parent
6063cc0b29
commit
a968962b40
@ -390,7 +390,11 @@ def logout():
|
||||
@app.route('/settings')
|
||||
@login_required
|
||||
def settings():
|
||||
return render_template('settings.html')
|
||||
instanceInfo = {
|
||||
"totalUsers":db.session.query(User).count(),
|
||||
"location":config['serverLocation']
|
||||
}
|
||||
return render_template('settings.html', info=instanceInfo)
|
||||
|
||||
@app.route('/export')
|
||||
@login_required
|
||||
|
@ -77,6 +77,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<!-- INSTANCE INFO -->
|
||||
<h1 class="ui header">Instance Info</h1>
|
||||
<div class="ui segments">
|
||||
<div class="ui segment">
|
||||
<p><b>Total users:</b> {{info.totalUsers}}</p>
|
||||
</div>
|
||||
<div class="ui segment">
|
||||
<p><b>Server location:</b> {{info.location}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"nitterInstance": "https://nitter.net/",
|
||||
"maxInstanceUsers": 10
|
||||
"maxInstanceUsers": 10,
|
||||
"serverLocation": "Germany"
|
||||
}
|
||||
|
Reference in New Issue
Block a user