From: Leo-Andres Hofmann Date: Tue, 17 Nov 2020 06:29:01 +0000 (+0100) Subject: zoneconf.cgi: Clean up HTML output X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96d0c76154fe1b52796517afa7afe23f1d888638;p=people%2Fms%2Fipfire-2.x.git zoneconf.cgi: Clean up HTML output This adds missing brackets, cleans up the indentation and removes unnecessary CSS. Signed-off-by: Leo-Andres Hofmann Reviewed-by: Michael Tremer Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/zoneconf.cgi b/html/cgi-bin/zoneconf.cgi index d99a3e611d..0674105825 100644 --- a/html/cgi-bin/zoneconf.cgi +++ b/html/cgi-bin/zoneconf.cgi @@ -38,10 +38,6 @@ my $css = < - - + END ; @@ -332,7 +324,7 @@ foreach (@zones) { my $red_restricted = ($uc eq "RED" && ! ($red_type eq "STATIC" || $red_type eq "DHCP")); if ($red_restricted) { - print ""; + print "\t\t\n"; next; # We're done here } @@ -350,7 +342,7 @@ foreach (@zones) { } print <$uc
+
"; +print "\t\n"; my $slightlygrey = ""; @@ -370,7 +362,8 @@ foreach (@nics) { my $nic = $_->[1]; my $wlan = $_->[2]; - print ""; + print "\t\n"; + print "\t\t\n"; # Iterate through all zones and check if the current NIC is assigned to it foreach (@zones) { @@ -393,7 +386,12 @@ foreach (@nics) { $checked = "checked"; } - print ""; + print < + + +END +; next; # We're done here } } @@ -432,19 +430,19 @@ foreach (@nics) { my $vlan_disabled = ($wlan) ? "disabled" : ""; print < - - - + END ; } - print ""; + print "\t\n"; if ($slightlygrey) { $slightlygrey = "";
+
$uc ($red_type)$uc ($red_type)$uc
$nic
$mac
$nic
$mac
+ + +