diff --git a/templates/wireguard/wireguard_manage_peer.html b/templates/wireguard/wireguard_manage_peer.html index 81f124d..37b5177 100644 --- a/templates/wireguard/wireguard_manage_peer.html +++ b/templates/wireguard/wireguard_manage_peer.html @@ -3,258 +3,272 @@ {% block content %} -
-
-

{% trans 'Peer Configuration' %}

-
-
-
-
- -
- -
- {{ current_peer.name|default:"-" }} - - - -
-
- - -
- -
- {{ current_peer.persistent_keepalive }} - - - -
-
- - -
-
- - - - -
- -
-
{% trans 'Public Key' %}
-
{{ current_peer.public_key }}
- -
{% trans 'Private Key' %}
-
- {% if current_peer.private_key %} - ******************************************** - {% else %} - {% trans 'Not set' %} - {% endif %} -
- -
{% trans 'Pre-Shared Key' %}
-
- {% if current_peer.pre_shared_key %} - ******************************************** - {% else %} - {% trans 'Not set' %} - {% endif %} -
-
-
- -
-
- -
-
-
- -
- 1h - 3h - 6h - 1d - 7d - 1m - 3m - 6m - 1y -
-
- -
- {% trans 'No traffic history, please wait a few minutes' %} -
- -
-
-
- - -
-
+
+
+

{% trans 'Peer Configuration' %}

+
+
+
+
+ +
+
- - {% trans 'Add IP Address' %} + {{ current_peer.name|default:"-" }} + + +
- - {% for ip_address in peer_ip_list %} -
-

- - - {{ ip_address}} - -

-

- {% if ip_address.priority == 0 %} - {% trans 'Main ip address' %} - {% else %} - {% trans 'Priority' %}: {{ ip_address.priority }} - {% endif %} -

-
- {% endfor %} -
-
-
-
+ + +
+
- -
- {% trans 'Apply template' %} - {% trans 'Add Client route' %} + {{ current_peer.persistent_keepalive }} + + + +
+
+ + +
+
+ + + + +
+ +
+
{% trans 'Public Key' %}
+
{{ current_peer.public_key }}
+ +
{% trans 'Private Key' %}
+
+ {% if current_peer.private_key %} + ******************************************** + {% else %} + {% trans 'Not set' %} + {% endif %} +
+ +
{% trans 'Pre-Shared Key' %}
+
+ {% if current_peer.pre_shared_key %} + ******************************************** + {% else %} + {% trans 'Not set' %} + {% endif %} +
+
+
+ +
+
+ +
+
+
+ +
+ 1h + 3h + 6h + 1d + 7d + 1m + 3m + 6m + 1y +
+
+ {% trans 'No traffic history, please wait a few minutes' %} +
+ +
- {% if current_peer.routing_template %} - + + +
+
+ - - {% for ip_address in current_peer.routing_template.template_routes %} -
-

- - - {{ ip_address}} - -

-

- {% trans 'Template Route' %} -

- {% endfor %} - - {% else %} -
-

- +

+ + + {{ ip_address }} + +

+

+ {% if ip_address.priority == 0 %} + {% trans 'Main ip address' %} + {% else %} + {% trans 'Priority' %}: {{ ip_address.priority }} {% endif %} - - > - - 0.0.0.0/0, ::/0 - -

-

- {% trans 'default route' %} -

+

+
+ {% endfor %} +
- {% endif %} - - - {% for ip_address in peer_client_ip_list %} -
-

- - - {{ ip_address}} - -

-

- {% if ip_address.priority == 0 %} - {% trans 'Main ip address' %} - {% else %} - {% trans 'Priority' %}: {{ ip_address.priority }} - {% endif %} -

-
- {% endfor %} -
+
+
+
+ + + +
+ {% if current_peer.routing_template %} +
+

+ + {{ current_peer.routing_template.name }} + +

+

+ {% trans 'Routing Template' %} +

+
+ + {% for ip_address in current_peer.routing_template.template_routes %} +
+

+ + + {{ ip_address }} + +

+

+ {% trans 'Template Route' %} +

+
+ {% endfor %} + + + {% else %} +
+

+ + + 0.0.0.0/0, ::/0 + +

+

+ {% trans 'default route' %} +

+
+ {% endif %} + + + {% for ip_address in peer_client_ip_list %} +
+

+ + + {{ ip_address }} + +

+

+ {% if ip_address.priority == 0 %} + {% trans 'Main ip address' %} + {% else %} + {% trans 'Priority' %}: {{ ip_address.priority }} + {% endif %} +

+
+ {% endfor %} + +
+
+ +
- - - -
+
- -
{% endblock %} {% block custom_page_scripts %} - - - + + + {% endblock %} \ No newline at end of file