You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
Rename /status to /services
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
<li class="header">Administration</li>
|
||||
{% if current_user.global_admin %}
|
||||
<li>
|
||||
<a href="{{ url_for('.status') }}">
|
||||
<a href="{{ url_for('.services') }}">
|
||||
<i class="fa fa-dashboard"></i> <span>Services status</span>
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -8,9 +8,9 @@ import flask
|
||||
import json
|
||||
|
||||
|
||||
@app.route('/status', methods=['GET'])
|
||||
@app.route('/services', methods=['GET'])
|
||||
@flask_login.login_required
|
||||
def status():
|
||||
def services():
|
||||
utils.require_global_admin()
|
||||
containers = {}
|
||||
for brief in dockercli.containers(all=True):
|
||||
@@ -20,7 +20,7 @@ def status():
|
||||
name = container['Config']['Labels']['com.docker.compose.service']
|
||||
containers[name] = container
|
||||
pprint.pprint(container)
|
||||
return flask.render_template('admin/status.html', containers=containers)
|
||||
return flask.render_template('admin/services.html', containers=containers)
|
||||
|
||||
|
||||
@app.route('/admins', methods=['GET'])
|
||||
|
Reference in New Issue
Block a user