From: Michael Tremer Date: Fri, 6 Sep 2024 16:10:48 +0000 (+0200) Subject: wireguard.cgi: Only show the location if we have something X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27e9dcc159247d55e369b3cbf6b826168fda38f6;p=ipfire-2.x.git wireguard.cgi: Only show the location if we have something Otherwise the text won't be centered in the box which looks a little bit wrong. Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/wireguard.cgi b/html/cgi-bin/wireguard.cgi index 7c01522ee..283fa9e12 100644 --- a/html/cgi-bin/wireguard.cgi +++ b/html/cgi-bin/wireguard.cgi @@ -526,14 +526,14 @@ END $Lang::tr{'name'} - - $Lang::tr{'status'} - - $Lang::tr{'remark'} + + $Lang::tr{'status'} + + $Lang::tr{'action'} @@ -606,6 +606,13 @@ EOF $name + + $remarks + +END + + if ($location) { + print < $connected @@ -613,11 +620,16 @@ EOF $location - - - $remarks +END + } else { + print < + $connected +END + } + print <