+ {% if conf_data['listen_port'] == "" and conf_data['status'] == "stopped" %} + + {% endif %} + {% if conf_data['conf_address'] == "N/A" %} + + {% endif %}
CONFIGURATION -

{{conf_data['name']}}

+

{{conf_data['name']}}

ACTION
@@ -47,7 +57,14 @@
{{conf_data['public_key']}}
LISTEN PORT -
{{conf_data['listen_port']}}
+
+ {% if conf_data['listen_port'] == "" %} + N/A + {% else %} + {{conf_data['listen_port']}} + {% endif %} + +
ADDRESS @@ -81,18 +98,22 @@
{{conf_data['conf_address']}}
-
- +
+
+ + +
+

-
+
{% if conf_data['peer_data']|length == 0 %}

Oops! No peers found ‘︿’

@@ -100,28 +121,37 @@

Oops! No peers found ‘︿’

{% endif %} {% for i in conf_data['peer_data']%} -
+ {% if peer_display_mode == "list" %} +
+ {% else %} +
+ {% endif %}
-
+
{% if not i['name']%} - {{ "Untitled Peer" }} + {{ "Untitled" }} {% else %} {{i['name']}} {% endif %} - +{# #}
-
-

{{i['total_receive']}} GB

-

{{i['total_sent']}} GB

-
+
+ STATUS +
+
+
+ TRANSFER +

{{i['total_receive']}} GB

+

{{i['total_sent']}} GB

+
PEER diff --git a/src/templates/settings.html b/src/templates/settings.html index 1cb2ab17..1f6c267d 100644 --- a/src/templates/settings.html +++ b/src/templates/settings.html @@ -1,7 +1,7 @@ {% with %} {% set title="Settings" %} - {% include "header.html"%} + {% include "header.html" %} {% endwith %} {% include "navbar.html" %} @@ -14,86 +14,124 @@ {{ message }}
{% endif %} -

Settings

+

Settings

+
{% if required_auth == "true" %} -

Account

-
-
- - - +
+
Peer Default Settings
+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
- +

-

New Peer Default Settings

-
-
-
-
- - -
-
- - +
+
WireGuard Configuration Path
+
+ +
+ + +

Remember to remove / at the end of your path. e.g /etc/wireguard +

+
-
- +
- -
- +
-

WireGuard Configuration Path

-
-
- - -

Remember to remove / at the end of your path. e.g /etc/wireguard -

- +
+
Account
+
+ +
+ + + +
+
- -
-

Security

-
-
- - - - - - - +
+ +
+
Security
+
+ +
+ + + + + + + +
+
- -
+
{% endif %} -

Dashboard Configuration

-
-
-
-
- - -

0.0.0.0 means it can be access by anyone with your server - IP Address.

-
-
- - +
+
Dashboard Configuration
+
+ +
+
+
+ + +

0.0.0.0 means it can be access by anyone with your server + IP Address.

+
+
+ + +
+
+
-
- +
- +