improve identation

This commit is contained in:
Eduardo Silva
2026-01-26 14:00:53 -03:00
parent 5b21f24b7c
commit a0d813d389

View File

@@ -92,10 +92,13 @@
</div>
<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>
<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>
@@ -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>
{% trans 'Peer IP Addresses and networks' %}
</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>
{% for ip_address in peer_ip_list %}
@@ -134,12 +140,19 @@
<div class="col-md-12">
<div class="d-flex justify-content-between align-items-center">
<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' %}
</label>
<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-primary btn-xs" href="/peer/manage_ip_address/?peer={{ current_peer.uuid }}&config=client" >{% trans 'Add Client route' %}</a>
<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-primary btn-xs"
href="/peer/manage_ip_address/?peer={{ current_peer.uuid }}&config=client">
{% trans 'Add Client route' %}
</a>
</div>
</div>
@@ -180,7 +193,6 @@
{% 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.' %}');"
{% endif %}
>
<i class="fas fa-network-wired"></i>
0.0.0.0/0, ::/0
@@ -215,14 +227,16 @@
</div>
</div>
</div>
</div>
<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 href='javascript:void(0)' class='btn btn-outline-danger' data-command='delete' onclick='openCommandDialog(this)'>{% trans 'Delete Peer' %}</a>
<a class="btn btn-outline-secondary"
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>
{% endblock %}