From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo-Andres Hofmann To: development@lists.ipfire.org Subject: [PATCH 1/4] zoneconf.cgi: Clean up HTML output Date: Tue, 17 Nov 2020 07:29:01 +0100 Message-ID: <20201117062904.1547-1-hofmann@leo-andres.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3489114161715844978==" List-Id: --===============3489114161715844978== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This adds missing brackets, cleans up the indentation and removes unnecessary= CSS. Signed-off-by: Leo-Andres Hofmann --- html/cgi-bin/zoneconf.cgi | 46 +++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/html/cgi-bin/zoneconf.cgi b/html/cgi-bin/zoneconf.cgi index d99a3e611..067410582 100644 --- a/html/cgi-bin/zoneconf.cgi +++ b/html/cgi-bin/zoneconf.cgi @@ -38,10 +38,6 @@ my $css =3D < - - + END ; =20 @@ -332,7 +324,7 @@ foreach (@zones) { my $red_restricted =3D ($uc eq "RED" && ! ($red_type eq "STATIC" || $red_t= ype eq "DHCP")); =20 if ($red_restricted) { - print ""; + print "\t\t\n"; =20 next; # We're done here } @@ -350,7 +342,7 @@ foreach (@zones) { } =20 print <$uc
+
"; +print "\t\n"; =20 my $slightlygrey =3D ""; =20 @@ -370,7 +362,8 @@ foreach (@nics) { my $nic =3D $_->[1]; my $wlan =3D $_->[2]; =20 - print ""; + print "\t\n"; + print "\t\t\n"; =20 # Iterate through all zones and check if the current NIC is assigned to it foreach (@zones) { @@ -393,7 +386,12 @@ foreach (@nics) { $checked =3D "checked"; } =20 - print ""; + print < + + +END +; next; # We're done here } } @@ -432,19 +430,19 @@ foreach (@nics) { my $vlan_disabled =3D ($wlan) ? "disabled" : ""; =20 print < - - - + END ; } =20 - print ""; + print "\t\n"; =20 if ($slightlygrey) { $slightlygrey =3D ""; --=20 2.27.0.windows.1 --===============3489114161715844978==--
+
$uc ($red_type)$uc ($red_type)$uc
$nic
$mac
$nic
$mac
+ + +