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 2026-03-11 22:46:57 -07:00 committed by James Valleroy
parent 66f2307a19
commit d0d26866bd
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 5 additions and 4 deletions

View File

@ -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>

View File

@ -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>