users: 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 authored and James Valleroy committed 2026-03-19 19:13:39 -04:00
1 parent 66f2307a19
commit d0d26866bd
2 files changed
+5 -4

No files matched your search

@@ -6,6 +6,7 @@
{% load bootstrap %}
{% load i18n %}
{% load static %}
{% load plinth_extras %}
{% block content %}
<h2>{% trans "Administrator Account" %}</h2>
@@ -30,7 +31,7 @@
{% else %}
<div class="alert alert-danger d-flex align-items-center" role="alert">
<div class="me-2">
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
{% icon 'exclamation-triangle' %}
<span class="visually-hidden">{% trans "Caution:" %}</span>
</div>
<div>
@@ -5,6 +5,7 @@
{% load bootstrap %}
{% load i18n %}
{% load plinth_extras %}
{% block configuration %}
@@ -13,7 +14,7 @@
<div class="btn-toolbar">
<a href="{% url 'users:create' %}" class="btn btn-primary"
role="button" title="{% trans 'Create User' %}">
<span class="fa fa-plus" aria-hidden="true"></span>
{% icon 'plus' %}
{% trans 'Create User' %}
</a>
</div>
@@ -30,8 +31,7 @@
</a>
{% if not user.is_active %}
<span class="fa fa-ban primary"
aria-hidden="true"></span>
{% icon 'ban' %}
{% endif %}
</div>