help: 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:59:45 -07:00 committed by James Valleroy
parent 59218c16a8
commit 236f90bbd9
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 5 additions and 3 deletions

View File

@ -5,6 +5,7 @@
{% load i18n %}
{% load static %}
{% load plinth_extras %}
{% block content %}
@ -18,10 +19,10 @@
d-flex align-items-center">
<div class="me-2">
{% if new_version %}
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
{% icon 'exclamation-triangle' %}
<span class="visually-hidden">{% trans "Caution:" %}</span>
{% else %}
<span class="fa fa-check-circle" aria-hidden="true"></span>
{% icon 'check-circle' %}
<span class="visually-hidden">{% trans "Success:" %}</span>
{% endif %}
</div>

View File

@ -5,6 +5,7 @@
{% load i18n %}
{% load static %}
{% load plinth_extras %}
{% block page_head %}
<link type="text/css" rel="stylesheet"
@ -14,7 +15,7 @@
{% block content %}
<a href="{% url 'help:download-manual' %}" class="btn btn-default pdf"
role="button">
<span class="fa fa-download fa-fw fa-lg"></span>
{% icon 'download' %}
{% trans 'Download as PDF' %}
</a>
{{ content|safe }}