diff --git a/plinth/modules/wireguard/templates/wireguard.html b/plinth/modules/wireguard/templates/wireguard.html index c684a6101..8006611c8 100644 --- a/plinth/modules/wireguard/templates/wireguard.html +++ b/plinth/modules/wireguard/templates/wireguard.html @@ -62,7 +62,11 @@ {% blocktrans %} Public key for this {{ box_name }}: {% endblocktrans %} -
{{ server.public_key }}
+ {% if server.public_key %}
+ {{ server.public_key }}
+ {% else %}
+ {% trans "Not configured yet." %}
+ {% endif %}