mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-01-31 11:36:18 +00:00
improve identation
This commit is contained in:
@@ -92,10 +92,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
<img id="graphImg" src="/rrd/graph/?peer={{ current_peer.uuid }}{% if request.GET.period %}&period={{ request.GET.period }}{% endif %}" class="img-fluid" alt="{% trans 'No traffic history, please wait a few minutes' %}" onerror="this.onerror=null; this.style.display='none'; this.insertAdjacentHTML('afterend', this.alt);">
|
<img id="graphImg" src="/rrd/graph/?peer={{ current_peer.uuid }}{% if request.GET.period %}&period={{ request.GET.period }}{% endif %}"
|
||||||
|
class="img-fluid" alt="{% trans 'No traffic history, please wait a few minutes' %}"
|
||||||
|
onerror="this.onerror=null; this.style.display='none'; this.insertAdjacentHTML('afterend', this.alt);">
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<div class="d-flex justify-content-between align-items-center border-bottom mb-3" style="padding-top: 16px;"></div>
|
<div class="d-flex justify-content-between align-items-center border-bottom mb-3"
|
||||||
|
style="padding-top: 16px;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -107,7 +110,10 @@
|
|||||||
<i class="fas fa-info-circle" title="{% trans 'AllowedIPs at Peer section of wg' %}{{ current_peer.wireguard_instance.instance_id }}.conf"></i>
|
<i class="fas fa-info-circle" title="{% trans 'AllowedIPs at Peer section of wg' %}{{ current_peer.wireguard_instance.instance_id }}.conf"></i>
|
||||||
{% trans 'Peer IP Addresses and networks' %}
|
{% trans 'Peer IP Addresses and networks' %}
|
||||||
</label>
|
</label>
|
||||||
<a class="btn btn-outline-primary btn-xs" href="/peer/manage_ip_address/?peer={{ current_peer.uuid }}&config=server" >{% trans 'Add IP Address' %}</a>
|
<a class="btn btn-outline-primary btn-xs"
|
||||||
|
href="/peer/manage_ip_address/?peer={{ current_peer.uuid }}&config=server">
|
||||||
|
{% trans 'Add IP Address' %}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% for ip_address in peer_ip_list %}
|
{% for ip_address in peer_ip_list %}
|
||||||
@@ -134,12 +140,19 @@
|
|||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
<label>
|
<label>
|
||||||
<i class="fas fa-info-circle" title="{% trans 'AllowedIPs at client configuration file' %}"></i>
|
<i class="fas fa-info-circle"
|
||||||
|
title="{% trans 'AllowedIPs at client configuration file' %}"></i>
|
||||||
{% trans 'Client Routing' %}
|
{% trans 'Client Routing' %}
|
||||||
</label>
|
</label>
|
||||||
<div>
|
<div>
|
||||||
<a class="btn btn-outline-info btn-xs" href="/peer/apply_route_template/?peer={{ current_peer.uuid }}" >{% trans 'Apply template' %}</a>
|
<a class="btn btn-outline-info btn-xs"
|
||||||
<a class="btn btn-outline-primary btn-xs" href="/peer/manage_ip_address/?peer={{ current_peer.uuid }}&config=client" >{% trans 'Add Client route' %}</a>
|
href="/peer/apply_route_template/?peer={{ current_peer.uuid }}">
|
||||||
|
{% trans 'Apply template' %}
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-outline-primary btn-xs"
|
||||||
|
href="/peer/manage_ip_address/?peer={{ current_peer.uuid }}&config=client">
|
||||||
|
{% trans 'Add Client route' %}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -180,7 +193,6 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
onclick="alert('{% trans 'The client is configured to use the VPN as the default gateway. \n\nThis setting routes all client internet traffic through the VPN, enhancing privacy and security across all connections.' %}');"
|
onclick="alert('{% trans 'The client is configured to use the VPN as the default gateway. \n\nThis setting routes all client internet traffic through the VPN, enhancing privacy and security across all connections.' %}');"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
>
|
>
|
||||||
<i class="fas fa-network-wired"></i>
|
<i class="fas fa-network-wired"></i>
|
||||||
0.0.0.0/0, ::/0
|
0.0.0.0/0, ::/0
|
||||||
@@ -215,14 +227,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<a class="btn btn-outline-secondary" href="/peer/list/?uuid={{ current_peer.wireguard_instance.uuid }}#peer-{{ current_peer.public_key }}">{% trans 'Back' %}</a>
|
<a class="btn btn-outline-secondary"
|
||||||
<a href='javascript:void(0)' class='btn btn-outline-danger' data-command='delete' onclick='openCommandDialog(this)'>{% trans 'Delete Peer' %}</a>
|
href="/peer/list/?uuid={{ current_peer.wireguard_instance.uuid }}#peer-{{ current_peer.public_key }}">
|
||||||
|
{% trans 'Back' %}
|
||||||
|
</a>
|
||||||
|
<a href='javascript:void(0)' class='btn btn-outline-danger' data-command='delete'
|
||||||
|
onclick='openCommandDialog(this)'>{% trans 'Delete Peer' %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user