mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
Return a warning result if no domains are configured. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
35 lines
1000 B
HTML
35 lines
1000 B
HTML
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
|
|
<div class="table-responsive">
|
|
<table class="table diagnostics-results">
|
|
<thead>
|
|
<tr>
|
|
<th class="diagnostic-test">{% trans "Test" %}</th>
|
|
<th class="diagnostics-result">{% trans "Result" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for test, result in results %}
|
|
<tr>
|
|
<td>{{ test }}</td>
|
|
<td class="diagnostics-result">
|
|
{% if result == 'passed' %}
|
|
<span class="badge badge-success">{% trans result %}</span>
|
|
{% elif result == 'failed' %}
|
|
<span class="badge badge-danger">{% trans result %}</span>
|
|
{% elif result == 'error' or result == 'warning' %}
|
|
<span class="badge badge-warning">{% trans result %}</span>
|
|
{% else %}
|
|
{{ result }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|