diagnostics: Use inline SVG icons

Tests:

- All the icons appear as before in both light/dark themes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2026-03-11 23:19:35 -07:00 committed by James Valleroy
parent fad1f7d58b
commit 1b24a03774
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -4,6 +4,7 @@
{% endcomment %} {% endcomment %}
{% load i18n %} {% load i18n %}
{% load plinth_extras %}
{% block content %} {% block content %}
@ -72,9 +73,9 @@
{% endwith %} {% endwith %}
{% endfor %} {% endfor %}
{% elif app_data.exception %} {% elif app_data.exception %}
<span class="fa fa-exclamation-triangle mx-1" aria-hidden="true"></span> {% icon 'exclamation-triangle' %}
{% else %} {% else %}
<span class="fa fa-hourglass-o mx-1"></span> {% icon 'hourglass-o' %}
{% endif %} {% endif %}
{% if app_data.show_repair %} {% if app_data.show_repair %}
@ -98,7 +99,7 @@
{% elif app_data.exception %} {% elif app_data.exception %}
<div class="alert alert-danger d-flex align-items-center" role="alert"> <div class="alert alert-danger d-flex align-items-center" role="alert">
<div class="me-2"> <div class="me-2">
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span> {% icon 'exclamation-triangle' %}
<span class="visually-hidden">{% trans "Caution:" %}</span> <span class="visually-hidden">{% trans "Caution:" %}</span>
</div> </div>
<div> <div>
@ -107,7 +108,7 @@
</div> </div>
{% else %} {% else %}
<p class="text-center"> <p class="text-center">
<span class="fa fa-hourglass-o me-2"></span> {% icon 'hourglass-o' %}
{% trans "Running..." %} {% trans "Running..." %}
</p> </p>
{% endif %} {% endif %}