mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-25 09:21:10 +00:00
wireguard: 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
72dd357d43
commit
941b586cb9
@ -5,6 +5,7 @@
|
||||
|
||||
{% load bootstrap %}
|
||||
{% load i18n %}
|
||||
{% load plinth_extras %}
|
||||
|
||||
{% block configuration %}
|
||||
<h3>{% trans "As a Server" %}</h3>
|
||||
@ -87,7 +88,7 @@
|
||||
<a title="{% trans 'Add a new peer' %}"
|
||||
role="button" class="btn btn-default btn-add-client"
|
||||
href="{% url 'wireguard:add-client' %}">
|
||||
<span class="fa fa-plus" aria-hidden="true"></span>
|
||||
{% icon 'plus' %}
|
||||
{% trans "Add Allowed Client" %}
|
||||
</a>
|
||||
</div>
|
||||
@ -98,7 +99,7 @@
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-primary btn-start-server"
|
||||
title="{% trans 'Start WireGuard Server' %}">
|
||||
<span class="fa fa-rocket" aria-hidden="true"></span>
|
||||
{% icon 'rocket' %}
|
||||
{% trans "Start WireGuard Server" %}
|
||||
</button>
|
||||
</form>
|
||||
@ -151,7 +152,7 @@
|
||||
<a title="{% trans 'Add a new server' %}"
|
||||
role="button" class="btn btn-default btn-add-server"
|
||||
href="{% url 'wireguard:add-server' %}">
|
||||
<span class="fa fa-plus" aria-hidden="true"></span>
|
||||
{% icon 'plus' %}
|
||||
{% trans "Add Connection to Server" %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
{% endcomment %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load plinth_extras %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@ -72,12 +73,12 @@
|
||||
<div class="btn-toolbar">
|
||||
<a class="btn btn-default btn-edit-client"
|
||||
href="{% url 'wireguard:edit-client' client.public_key|urlencode:'' %}">
|
||||
<span class="fa fa-pencil-square-o" aria-hidden="true"></span>
|
||||
{% icon 'pencil-square-o' %}
|
||||
{% trans "Edit" %}
|
||||
</a>
|
||||
<a class="btn btn-default btn-delete-client"
|
||||
href="{% url 'wireguard:delete-client' client.public_key|urlencode:'' %}">
|
||||
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
||||
{% icon 'trash-o' %}
|
||||
{% trans "Delete" %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
{% endcomment %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load plinth_extras %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@ -80,12 +81,12 @@
|
||||
<div class="btn-toolbar">
|
||||
<a class="btn btn-default btn-edit-server"
|
||||
href="{% url 'wireguard:edit-server' interface %}">
|
||||
<span class="fa fa-pencil-square-o" aria-hidden="true"></span>
|
||||
{% icon 'pencil-square-o' %}
|
||||
{% trans "Edit" %}
|
||||
</a>
|
||||
<a class="btn btn-default btn-delete-server"
|
||||
href="{% url 'wireguard:delete-server' interface %}">
|
||||
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
||||
{% icon 'trash-o' %}
|
||||
{% trans "Delete" %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user