mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
- renamed app.html to simple_service.html - allow hiding the 'status' block instead of using separate apache_service.html template
76 lines
2.3 KiB
HTML
76 lines
2.3 KiB
HTML
{% extends 'simple_service.html' %}
|
|
{% comment %}
|
|
#
|
|
# This file is part of Plinth.
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block page_head %}
|
|
|
|
{% if is_running %}
|
|
<meta http-equiv="refresh" content="3" />
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block configuration %}
|
|
|
|
{% if not is_running %}
|
|
<form class="form form-diagnostics-button" method="post"
|
|
action="{% url 'diagnostics:index' %}">
|
|
{% csrf_token %}
|
|
|
|
<input type="submit" class="btn btn-primary"
|
|
value="{% trans "Run Diagnostics" %}"/>
|
|
</form>
|
|
{% else %}
|
|
<p>{% trans "Diagnotics test is currently running" %}</p>
|
|
<div class="progress">
|
|
<div class="progress-bar progress-bar-striped active"
|
|
role="progressbar" aria-valuemin="0" aria-valuemax="100"
|
|
aria-valuenow="{{ results.progress_percentage }}"
|
|
style="width: {{ results.progress_percentage }}%">
|
|
{{ results.progress_percentage }}%
|
|
</div>
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if results %}
|
|
<h3>{% trans "Results" %}</h3>
|
|
{% if results.error %}
|
|
<div class="alert alert-danger alert-dismissable">
|
|
<a class="close" data-dismiss="alert">×</a>
|
|
{{ results.error }}
|
|
</div>
|
|
{% else %}
|
|
{% for module, module_results in results.results.items %}
|
|
<h4>{% blocktrans %}Module: {{ module }}{% endblocktrans %}</h4>
|
|
|
|
{% if module_results %}
|
|
{% include "diagnostics_results.html" with results=module_results %}
|
|
{% else %}
|
|
<p><span class="glyphicon glyphicon-hourglass"></span></p>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% endblock %}
|