mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-24 11:20:40 +00:00
33 lines
871 B
HTML
33 lines
871 B
HTML
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
|
|
<table class="table table-bordered table-striped 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>
|
|
{% if result == 'passed' %}
|
|
<span class="label label-success">{{ result }}</span>
|
|
{% elif result == 'failed' %}
|
|
<span class="label label-danger">{{ result }}</span>
|
|
{% elif result == 'error' %}
|
|
<span class="label label-warning">{{ result }}</span>
|
|
{% else %}
|
|
{{ result }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|