diff --git a/templates/wireguard/peer_list/custom_styles.html b/templates/wireguard/peer_list/custom_styles.html new file mode 100644 index 0000000..56802a4 --- /dev/null +++ b/templates/wireguard/peer_list/custom_styles.html @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/templates/wireguard/peer_list/script_peer_charts_init.html b/templates/wireguard/peer_list/script_peer_charts_init.html new file mode 100644 index 0000000..76e373c --- /dev/null +++ b/templates/wireguard/peer_list/script_peer_charts_init.html @@ -0,0 +1,64 @@ +{% load i18n %} + diff --git a/templates/wireguard/peer_list/script_peer_extras_toggle.html b/templates/wireguard/peer_list/script_peer_extras_toggle.html new file mode 100644 index 0000000..880532e --- /dev/null +++ b/templates/wireguard/peer_list/script_peer_extras_toggle.html @@ -0,0 +1,15 @@ +{% load i18n %} + diff --git a/templates/wireguard/peer_list/script_peer_modal.html b/templates/wireguard/peer_list/script_peer_modal.html new file mode 100644 index 0000000..23dce79 --- /dev/null +++ b/templates/wireguard/peer_list/script_peer_modal.html @@ -0,0 +1,136 @@ +{% load i18n %} + + + \ No newline at end of file diff --git a/templates/wireguard/peer_list/script_vpn_invite.html b/templates/wireguard/peer_list/script_vpn_invite.html new file mode 100644 index 0000000..717e39e --- /dev/null +++ b/templates/wireguard/peer_list/script_vpn_invite.html @@ -0,0 +1,222 @@ +{% load i18n %} + + diff --git a/templates/wireguard/peer_list/script_wireguard_status_update.html b/templates/wireguard/peer_list/script_wireguard_status_update.html new file mode 100644 index 0000000..29f80f4 --- /dev/null +++ b/templates/wireguard/peer_list/script_wireguard_status_update.html @@ -0,0 +1,304 @@ +{% load i18n %} + diff --git a/templates/wireguard/wireguard_peer_list.html b/templates/wireguard/wireguard_peer_list.html index 7db1c82..37bae21 100644 --- a/templates/wireguard/wireguard_peer_list.html +++ b/templates/wireguard/wireguard_peer_list.html @@ -1,31 +1,8 @@ {% extends "base.html" %} {% load i18n %} -{% block page_custom_head %} - +{% block page_custom_head %} + {% include 'wireguard/peer_list/custom_styles.html' %} {% endblock %} @@ -36,955 +13,57 @@ +
-
+
- {% for peer in peer_list %} -
-
- {% comment %}background: linear-gradient(to right, white 50%, transparent 50%);{% endcomment %} -
-
-
- - {{ peer }} - -
- - {% if user_acl.user_level >= 30 %} -
- - - -
- - - -
-
- {% endif %} -
-
- {% trans 'Throughput' %}:
- {% trans 'Transfer' %}:
- {% trans 'Location' %}: {% trans 'Primary Server' %}
- {% trans 'Latest Handshake' %}: -
- {% trans 'Endpoints' %}:
- - {% trans 'Allowed IPs' %}: - - {% for address in peer.peerallowedip_set.all %} - {% if address.priority == 0 and address.config_file == 'server' %} - {{ address }} - {% endif %} - {% endfor %} - {% for address in peer.peerallowedip_set.all %} - {% if address.priority >= 1 and address.config_file == 'server' %} - {{ address }} - {% endif %} - {% endfor %} - - -
- -
-
- {% endfor %} + {% include 'wireguard/peer_list/peer_data.html' %}
{% if add_peer_enabled %} - {% trans 'Create Peer' %} + + {% trans 'Create Peer' %} + {% else %} {% trans 'Create Peer' %} {% endif %}
+
- -