vpnmain.cgi: Fix colouring of the connection status when disconnected

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-08-21 12:22:40 +02:00
parent 8ead2ddf3d
commit 234fd050d4

View File

@@ -3393,11 +3393,11 @@ END
print "<td align='left' $col>&nbsp;</td>";
}
print "<td align='center' $col>$confighash{$key}[25]</td>";
my $col1="bgcolor='${Header::colourred}'";
my $active = "<b><font color='#FFFFFF'>$Lang::tr{'capsclosed'}</font></b>";
my $col1="class='status is-disconnected'";
my $active = "$Lang::tr{'capsclosed'}";
if ($confighash{$key}[33] eq "add") {
$col1="bgcolor='${Header::colourorange}'";
$active = "<b><font color='#FFFFFF'>$Lang::tr{'vpn wait'}</font></b>";
$col1="class='status is-connecting'";
$active = "$Lang::tr{'vpn wait'}";
}
foreach my $line (@status) {
if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||