mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-25 08:43:36 +00:00
- Keep the badge-{severity} classes as they are meant for convenience of mapping
severity to style.
- Match bootstrap colors to maintain consistency and contrast.
Tests:
- Visually confirm that all the changes effective.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
37 lines
1.2 KiB
HTML
37 lines
1.2 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 text-bg-success">{% trans result.result %}</span>
|
|
{% elif result.result == 'failed' %}
|
|
<span class="badge text-bg-danger">{% trans result.result %}</span>
|
|
{% elif result.result == 'error' or result.result == 'warning' %}
|
|
<span class="badge text-bg-warning">{% trans result.result %}</span>
|
|
{% elif result.result == 'skipped' %}
|
|
<span class="badge text-bg-secondary">{% trans result.result %}</span>
|
|
{% else %}
|
|
{{ result.result }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|