mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
names: Use inline SVG icons for main app page
Tests: - The icons appears as before on the add/edit/delete buttons in light/dark themes. - The icon appears as before on the error message. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
3e6c8e9b06
commit
811b18c239
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load plinth_extras %}
|
||||||
|
|
||||||
{% block status %}
|
{% block status %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -31,7 +32,7 @@
|
|||||||
{% if domain.domain_type.configuration_url %}
|
{% if domain.domain_type.configuration_url %}
|
||||||
<a href="{% url domain.domain_type.configuration_url %}"
|
<a href="{% url domain.domain_type.configuration_url %}"
|
||||||
role="button" class="btn btn-md btn-default">
|
role="button" class="btn btn-md btn-default">
|
||||||
<span class="fa fa-wrench" aria-hidden="true"></span>
|
{% icon 'wrench' %}
|
||||||
{% trans "Configure" %}
|
{% trans "Configure" %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -39,14 +40,14 @@
|
|||||||
<a href="{% url domain.domain_type.edit_url domain.name %}"
|
<a href="{% url domain.domain_type.edit_url domain.name %}"
|
||||||
role="button" class="btn btn-md btn-default"
|
role="button" class="btn btn-md btn-default"
|
||||||
title="{% trans 'Edit' %}">
|
title="{% trans 'Edit' %}">
|
||||||
<span class="fa fa-pencil-square-o" aria-hidden="true"></span>
|
{% icon 'pencil-square-o' %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if domain.domain_type.delete_url %}
|
{% if domain.domain_type.delete_url %}
|
||||||
<a href="{% url domain.domain_type.delete_url domain.name %}"
|
<a href="{% url domain.domain_type.delete_url domain.name %}"
|
||||||
role="button" class="btn btn-md btn-default"
|
role="button" class="btn btn-md btn-default"
|
||||||
title="{% trans 'Delete' %}">
|
title="{% trans 'Delete' %}">
|
||||||
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
{% icon 'trash-o' %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
@ -67,14 +68,14 @@
|
|||||||
{% if domain_type.configuration_url %}
|
{% if domain_type.configuration_url %}
|
||||||
<a href="{% url domain_type.configuration_url %}"
|
<a href="{% url domain_type.configuration_url %}"
|
||||||
role="button" class="btn btn-md btn-default">
|
role="button" class="btn btn-md btn-default">
|
||||||
<span class="fa fa-wrench" aria-hidden="true"></span>
|
{% icon 'wrench' %}
|
||||||
{% trans "Configure" %}
|
{% trans "Configure" %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if domain_type.add_url %}
|
{% if domain_type.add_url %}
|
||||||
<a href="{% url domain_type.add_url %}"
|
<a href="{% url domain_type.add_url %}"
|
||||||
role="button" class="btn btn-md btn-default">
|
role="button" class="btn btn-md btn-default">
|
||||||
<span class="fa fa-plus" aria-hidden="true"></span>
|
{% icon 'plus' %}
|
||||||
{% trans "Add" %}
|
{% trans "Add" %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -155,7 +156,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-danger d-flex align-items-center">
|
<div class="alert alert-danger d-flex align-items-center">
|
||||||
<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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user