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

@@ -62,7 +62,7 @@
{% if connection.primary %}
<div class="list-group-item">
<span class="primary">{% trans "Primary connection" %}</span>
<span class="badge badge-success secondary">
<span class="badge text-bg-success secondary">
{% trans "yes" %}
</span>
</div>
@@ -113,10 +113,10 @@
<div class="list-group-item">
<span class="primary">{% trans "Link state" %}</span>
{% if device.ethernet.carrier %}
<span class='badge badge-success secondary'>
<span class='badge text-bg-success secondary'>
{% trans "cable is connected" %}</span>
{% else %}
<span class='badge badge-warning secondary'>
<span class='badge text-bg-warning secondary'>
{% trans "please check cable" %}</span>
{% endif %}
</div>
@@ -152,7 +152,7 @@
{% if access_point.strength %}
<div class="list-group-item">
<span class="primary">{% trans "Signal strength" %}</span>
<span class="badge badge-secondary secondary">
<span class="badge text-bg-secondary secondary">
{{ access_point.strength }}%
</span>
</div>
@@ -273,7 +273,7 @@
<div class="list-group list-group-two-column">
<div class="list-group-item">
<span class="primary">{% trans "Firewall zone" %}</span>
<span class="badge badge-success secondary">
<span class="badge text-bg-success secondary">
{{ connection.zone_string }}
</span>
</div>
@@ -293,7 +293,7 @@
<div class="list-group list-group-two-column">
<div class="list-group-item">
<span class="primary">{% trans "Firewall zone" %}</span>
<span class="badge badge-warning secondary">
<span class="badge text-bg-warning secondary">
{{ connection.zone_string }}
</span>
</div>
@@ -312,7 +312,7 @@
<div class="list-group list-group-two-column">
<div class="list-group-item">
<span class="primary">{% trans "Firewall zone" %}</span>
<span class="badge badge-danger secondary">
<span class="badge text-bg-danger secondary">
{% trans "External" %}
</span>
</div>
@@ -27,11 +27,11 @@
<tr>
<td class="connection-status-cell">
{% if connection.is_active %}
<span class="badge badge-success connection-status-label">
<span class="badge text-bg-success connection-status-label">
{% trans "Active" %}
</span>
{% else %}
<span class="badge badge-warning connection-status-label">
<span class="badge text-bg-warning connection-status-label">
{% trans "Inactive" %}
</span>
{% endif %}
@@ -43,7 +43,7 @@
</a>
</span>
<span class="badge badge-secondary secondary">
<span class="badge text-bg-secondary secondary">
{{ access_point.strength }}%
</span>
</div>