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:
Sunil Mohan Adapa authored and Veiko Aasa committed 2024-12-12 12:30:28 +02:00
1 parent 65165f4b42
commit 4d71e80b1e
13 files changed
+43 -51

No files matched your search

@@ -36,10 +36,10 @@
</td>
<td class="app-status">
{% if component.is_enabled %}
<span class='badge badge-success'>
<span class='badge text-bg-success'>
{% trans "Enabled" %}</span>
{% else %}
<span class='badge badge-warning'>
<span class='badge text-bg-warning'>
{% trans "Disabled" %}</span>
{% endif %}
</td>
@@ -54,16 +54,16 @@
</td>
<td class="service-status">
{% if port.name in internal_enabled_ports and port.name in external_enabled_ports %}
<span class='badge badge-success'>
<span class='badge text-bg-success'>
{% trans "Permitted" %}</span>
{% elif port.name in internal_enabled_ports %}
<span class='badge badge-warning'>
<span class='badge text-bg-warning'>
{% trans "Permitted (internal only)" %}</span>
{% elif port.name in external_enabled_ports %}
<span class='badge badge-warning'>
<span class='badge text-bg-warning'>
{% trans "Permitted (external only)" %}</span>
{% else %}
<span class='badge badge-danger'>
<span class='badge text-bg-danger'>
{% trans "Blocked" %}</span>
{% endif %}
</td>