Merge pull request #465 from sanduhrs/feature/463
Remove services status page
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans %}Services status{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% call macros.table() %}
|
||||
<tr>
|
||||
<th>{% trans %}Service{% endtrans %}</th>
|
||||
<th>{% trans %}Status{% endtrans %}</th>
|
||||
<th>{% trans %}PID{% endtrans %}</th>
|
||||
<th>{% trans %}Image{% endtrans %}</th>
|
||||
<th>{% trans %}Started{% endtrans %}</th>
|
||||
<th>{% trans %}Last update{% endtrans %}</th>
|
||||
</tr>
|
||||
{% for name, container in containers.items() %}
|
||||
<tr>
|
||||
<td>{{ name }}</td>
|
||||
<td><span class="label label-{{ "success" if container['State']['Running'] else "danger" }}">{{ container['State']['Status'] }}</span></td>
|
||||
<td>{{ container['State']['Pid'] }}</td>
|
||||
<td>{{ container['Config']['Image'] }}</td>
|
||||
<td>{{ container['State']['StartedAt'] }}</td>
|
||||
<td>{{ container['Image']['Created'] }}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
{% endblock %}
|
||||
@@ -34,11 +34,6 @@
|
||||
|
||||
<li class="header">{% trans %}Administration{% endtrans %}</li>
|
||||
{% if current_user.global_admin %}
|
||||
<li>
|
||||
<a href="{{ url_for('.services') }}">
|
||||
<i class="fa fa-dashboard"></i> <span>{% trans %}Services status{% endtrans %}</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ url_for('.announcement') }}">
|
||||
<i class="fa fa-bullhorn"></i> <span>{% trans %}Announcement{% endtrans %}</span>
|
||||
|
||||
@@ -35,16 +35,6 @@ def logout():
|
||||
return flask.redirect(flask.url_for('.index'))
|
||||
|
||||
|
||||
@ui.route('/services', methods=['GET'])
|
||||
@access.global_admin
|
||||
def services():
|
||||
try:
|
||||
containers = dockercli.get()
|
||||
except Exception as error:
|
||||
return flask.render_template('docker-error.html', error=error)
|
||||
return flask.render_template('services.html', containers=containers)
|
||||
|
||||
|
||||
@ui.route('/announcement', methods=['GET', 'POST'])
|
||||
@access.global_admin
|
||||
def announcement():
|
||||
|
||||
Reference in New Issue
Block a user