From 643a06c7cd358dbcc2a8e55e2a710199f853c679 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 26 Feb 2026 22:30:27 -0800 Subject: [PATCH] wireguard: Fix format when showing multiple endpoints of the server - Show them in multiple lines using
 like before.

Tests:

- Multiple endpoints are shown in the one line each using 
 tag.

Signed-off-by: Sunil Mohan Adapa 
Reviewed-by: James Valleroy 
---
 .../wireguard/templates/wireguard.html        | 146 +++++++++---------
 1 file changed, 73 insertions(+), 73 deletions(-)

diff --git a/plinth/modules/wireguard/templates/wireguard.html b/plinth/modules/wireguard/templates/wireguard.html
index c4904a291..2e474ed34 100644
--- a/plinth/modules/wireguard/templates/wireguard.html
+++ b/plinth/modules/wireguard/templates/wireguard.html
@@ -10,86 +10,87 @@
   

{% trans "As a Server" %}

{% if server.public_key %} -

{% trans "Server" %}

+

{% trans "Server" %}

-

- {% blocktrans trimmed %} - Information for this {{ box_name }}: - {% endblocktrans %} -

+

+ {% blocktrans trimmed %} + Information for this {{ box_name }}: + {% endblocktrans %} +

-
- - - - - +
+
{% trans "Property" %}{% trans "Value" %}
- - + + - - - - - - - -
{% trans "Public Key" %}{{ server.public_key }}{% trans "Property" %}{% trans "Value" %}
{% trans "Endpoint(s)" %} - {% for endpoint in server_endpoints %}{{ endpoint }} -{% endfor %}
- {% blocktrans trimmed %} - {{ box_name }} VPN IP for services - {% endblocktrans %} - {{ server.ip_address }}
-
- -

{% trans "Peers" %}

- -

{% trans "Peers allowed to connect to this server:" %}

- -
- - - - - - - {% if server.peers %} - {% for peer in server.peers.values %} - {% if peer.public_key %} + + + + - - - - {% endif %} - {% endfor %} - {% else %} - - - - {% endif %} -
{% trans "Public Key" %}{% trans "Allowed IPs" %}{% trans "Last Connected Time" %}
{% trans "Public Key" %}{{ server.public_key }}
{% trans "Endpoint(s)" %} - - {{ peer.public_key }} - +
{% for endpoint in server_endpoints %}{{ endpoint }}
+{% endfor %}
{{ peer.allowed_ips|join:", " }}{{ peer.status.latest_handshake|default:'' }}
- {% blocktrans trimmed %} - No peers configured to connect to this {{ box_name }} yet. - {% endblocktrans %} -
-
+ + + + {% blocktrans trimmed %} + {{ box_name }} VPN IP for services + {% endblocktrans %} + + {{ server.ip_address }} + + + - +

{% trans "Peers" %}

+ +

{% trans "Peers allowed to connect to this server:" %}

+ +
+ + + + + + + {% if server.peers %} + {% for peer in server.peers.values %} + {% if peer.public_key %} + + + + + + {% endif %} + {% endfor %} + {% else %} + + + + {% endif %} +
{% trans "Public Key" %}{% trans "Allowed IPs" %}{% trans "Last Connected Time" %}
+ + {{ peer.public_key }} + + {{ peer.allowed_ips|join:", " }}{{ peer.status.latest_handshake|default:'' }}
+ {% blocktrans trimmed %} + No peers configured to connect to this {{ box_name }} yet. + {% endblocktrans %} +
+
+ + {% else %}

{% trans "WireGuard server not started yet." %}

@@ -102,8 +103,7 @@
- {% endif %} - + {% endif %}

{% trans "As a Client" %}