mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
networks: 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
663a2eb5c4
commit
bcc6bdc922
@ -7,6 +7,7 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load plinth_extras %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
<link type="text/css" rel="stylesheet"
|
<link type="text/css" rel="stylesheet"
|
||||||
@ -20,7 +21,7 @@
|
|||||||
{% if connection.primary %}
|
{% if connection.primary %}
|
||||||
<div class="alert alert-warning d-flex align-items-center" role="alert">
|
<div class="alert alert-warning 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>
|
||||||
@ -285,7 +286,7 @@
|
|||||||
|
|
||||||
<div class="alert alert-info d-flex align-items-center" role="alert">
|
<div class="alert alert-info d-flex align-items-center" role="alert">
|
||||||
<div class="me-2">
|
<div class="me-2">
|
||||||
<span class="fa fa-info-circle" aria-hidden="true"></span>
|
{% icon 'info-circle' %}
|
||||||
<span class="visually-hidden">{% trans "Info:" %}</span>
|
<span class="visually-hidden">{% trans "Info:" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -310,7 +311,7 @@
|
|||||||
|
|
||||||
<div class="alert alert-info d-flex align-items-center" role="alert">
|
<div class="alert alert-info d-flex align-items-center" role="alert">
|
||||||
<div class="me-2">
|
<div class="me-2">
|
||||||
<span class="fa fa-info-circle" aria-hidden="true"></span>
|
{% icon 'info-circle' %}
|
||||||
<span class="visually-hidden">{% trans "Info:" %}</span>
|
<span class="visually-hidden">{% trans "Info:" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -334,7 +335,7 @@
|
|||||||
|
|
||||||
<div class="alert alert-info d-flex align-items-center" role="alert">
|
<div class="alert alert-info d-flex align-items-center" role="alert">
|
||||||
<div class="me-2">
|
<div class="me-2">
|
||||||
<span class="fa fa-info-circle" aria-hidden="true"></span>
|
{% icon 'info-circle' %}
|
||||||
<span class="visually-hidden">{% trans "Info:" %}</span>
|
<span class="visually-hidden">{% trans "Info:" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@ -4,12 +4,13 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load plinth_extras %}
|
||||||
|
|
||||||
{% if form.non_field_errors %}
|
{% if form.non_field_errors %}
|
||||||
<div class="alert alert-danger alert-dismissible
|
<div class="alert alert-danger alert-dismissible
|
||||||
d-flex align-items-center fade show">
|
d-flex align-items-center fade show">
|
||||||
<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 "Error:" %}</span>
|
<span class="visually-hidden">{% trans "Error:" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@ -4,18 +4,19 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load plinth_extras %}
|
||||||
|
|
||||||
<h3>{% trans "Connections" %}</h3>
|
<h3>{% trans "Connections" %}</h3>
|
||||||
|
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<a href="{% url 'networks:scan' %}" class="btn btn-default"
|
<a href="{% url 'networks:scan' %}" class="btn btn-default"
|
||||||
role="button" title="{% trans 'Nearby Wi-Fi Networks' %}">
|
role="button" title="{% trans 'Nearby Wi-Fi Networks' %}">
|
||||||
<span class="fa fa-wifi" aria-hidden="true"></span>
|
{% icon 'wifi' %}
|
||||||
{% trans "Nearby Wi-Fi Networks" %}
|
{% trans "Nearby Wi-Fi Networks" %}
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url 'networks:add' %}" class="btn btn-default"
|
<a href="{% url 'networks:add' %}" class="btn btn-default"
|
||||||
role="button" title="{% trans 'Add Connection' %}">
|
role="button" title="{% trans 'Add Connection' %}">
|
||||||
<span class="fa fa-plus" aria-hidden="true"></span>
|
{% icon 'plus' %}
|
||||||
{% trans "Add Connection" %}
|
{% trans "Add Connection" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -75,7 +76,7 @@
|
|||||||
class="btn btn-default btn-sm"
|
class="btn btn-default btn-sm"
|
||||||
role="button"
|
role="button"
|
||||||
title="{% blocktrans with name=connection.name %}Delete connection {{ name }}{% endblocktrans %}">
|
title="{% blocktrans with name=connection.name %}Delete connection {{ name }}{% endblocktrans %}">
|
||||||
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
{% icon 'trash-o' %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user