From 35afcd212ef33f091a6a36e8dd3b092da2613d59 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 6 Sep 2024 17:59:58 +0200 Subject: [PATCH] wireguard.cgi: Remove the large box to warn people that the configuration will only be shown once Signed-off-by: Michael Tremer --- html/cgi-bin/wireguard.cgi | 10 ++++------ html/html/themes/ipfire/include/css/style.css | 7 +++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/html/cgi-bin/wireguard.cgi b/html/cgi-bin/wireguard.cgi index 0824d83ed..7c01522ee 100644 --- a/html/cgi-bin/wireguard.cgi +++ b/html/cgi-bin/wireguard.cgi @@ -1036,6 +1036,10 @@ sub show_peer_configuration($$) {

+

+ $Lang::tr{'wg warning configuration only shown once'} +

+

@@ -1045,12 +1049,6 @@ sub show_peer_configuration($$) { END &Header::closebox(); - - # Show a note that this configuration cannot be shown again - &Header::errorbox(( - $Lang::tr{'wg warning configuration only shown once'}, - )); - &Header::closepage(); exit(0); diff --git a/html/html/themes/ipfire/include/css/style.css b/html/html/themes/ipfire/include/css/style.css index 56e6f26df..dd97e41ed 100644 --- a/html/html/themes/ipfire/include/css/style.css +++ b/html/html/themes/ipfire/include/css/style.css @@ -155,6 +155,13 @@ iframe { text-align: right; } +/* + Text Colors +*/ +.text-error { + color: var(--color-red); +} + /* Header */ #header { -- 2.39.5