mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
Tests: - Unit tests pass. - Run full diagnostics tests and see that results and app name are translated when language preference is not English. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
35 lines
1.0 KiB
HTML
35 lines
1.0 KiB
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 result in results %}
|
|
<tr>
|
|
<td>{{ result.translated_description }}</td>
|
|
<td class="diagnostics-result">
|
|
{% if result.result == 'passed' %}
|
|
<span class="badge badge-success">{% trans result.result %}</span>
|
|
{% elif result.result == 'failed' %}
|
|
<span class="badge badge-danger">{% trans result.result %}</span>
|
|
{% elif result.result == 'error' or result.result == 'warning' %}
|
|
<span class="badge badge-warning">{% trans result.result %}</span>
|
|
{% else %}
|
|
{{ result.result }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|