mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Make all tables responsive
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
fef8da230f
commit
83dcafac55
28 files changed
+1085
-1026
No files matched your search
@@ -4,29 +4,31 @@
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
<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 %}
|
||||
<div class="table-responsive">
|
||||
<table class="table diagnostics-results">
|
||||
<thead>
|
||||
<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' %}
|
||||
<span class="badge badge-warning">{% trans result %}</span>
|
||||
{% else %}
|
||||
{{ result }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<th class="diagnostic-test">{% trans "Test" %}</th>
|
||||
<th class="diagnostics-result">{% trans "Result" %}</th>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</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' %}
|
||||
<span class="badge badge-warning">{% trans result %}</span>
|
||||
{% else %}
|
||||
{{ result }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in new issue
Block a user