kiwix: 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:07:16 -07:00 committed by James Valleroy
parent 1212504a10
commit 887514a523
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 bootstrap %}
{% load i18n %}
{% load plinth_extras %}
{% block content %}
@ -22,7 +23,7 @@
{% if max_filesize %}
<div class="alert alert-warning 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

@ -4,6 +4,7 @@
{% endcomment %}
{% load i18n %}
{% load plinth_extras %}
{% block configuration %}
{{ block.super }}
@ -13,7 +14,7 @@
<div class="btn-toolbar">
<a href="{% url 'kiwix:add-package' %}" class="btn btn-default"
role="button" title="{% trans 'Add a content package' %}">
<span class="fa fa-plus" aria-hidden="true"></span>
{% icon 'plus' %}
{% trans 'Add Package' %}
</a>
</div>
@ -35,7 +36,7 @@
<a href="{% url 'kiwix:delete-package' id %}"
class="btn btn-default btn-sm secondary" role="button"
title="{% blocktrans with title=package.title %}Delete package {{ title }}{% endblocktrans %}">
<span class="fa fa-trash-o" aria-hidden="true"></span>
{% icon 'trash-o' %}
</a>
</div>
{% endfor %}