mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Drop use of badge-* utility classes for newer replacements
- 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>
This commit is contained in:
1 parent
65165f4b42
commit
4d71e80b1e
13 files changed
+43
-51
No files matched your search
@@ -18,13 +18,13 @@
|
||||
<td>{{ result.translated_description }}</td>
|
||||
<td class="diagnostics-result">
|
||||
{% if result.result == 'passed' %}
|
||||
<span class="badge badge-success">{% trans result.result %}</span>
|
||||
<span class="badge text-bg-success">{% trans result.result %}</span>
|
||||
{% elif result.result == 'failed' %}
|
||||
<span class="badge badge-danger">{% trans result.result %}</span>
|
||||
<span class="badge text-bg-danger">{% trans result.result %}</span>
|
||||
{% elif result.result == 'error' or result.result == 'warning' %}
|
||||
<span class="badge badge-warning">{% trans result.result %}</span>
|
||||
<span class="badge text-bg-warning">{% trans result.result %}</span>
|
||||
{% elif result.result == 'skipped' %}
|
||||
<span class="badge badge-secondary">{% trans result.result %}</span>
|
||||
<span class="badge text-bg-secondary">{% trans result.result %}</span>
|
||||
{% else %}
|
||||
{{ result.result }}
|
||||
{% endif %}
|
||||
|
||||
Reference in new issue
Block a user