mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
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:
parent
66f2307a19
commit
d0d26866bd
@ -6,6 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
{% load plinth_extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>{% trans "Administrator Account" %}</h2>
|
<h2>{% trans "Administrator Account" %}</h2>
|
||||||
@ -30,7 +31,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<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>
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load plinth_extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
|
|
||||||
@ -13,7 +14,7 @@
|
|||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<a href="{% url 'users:create' %}" class="btn btn-primary"
|
<a href="{% url 'users:create' %}" class="btn btn-primary"
|
||||||
role="button" title="{% trans 'Create User' %}">
|
role="button" title="{% trans 'Create User' %}">
|
||||||
<span class="fa fa-plus" aria-hidden="true"></span>
|
{% icon 'plus' %}
|
||||||
{% trans 'Create User' %}
|
{% trans 'Create User' %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -30,8 +31,7 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% if not user.is_active %}
|
{% if not user.is_active %}
|
||||||
<span class="fa fa-ban primary"
|
{% icon 'ban' %}
|
||||||
aria-hidden="true"></span>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user