From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= <peter.mueller@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] remote.cgi: cosmetic changes Date: Tue, 22 Dec 2020 17:01:25 +0100 Message-ID: <8faceb22-59aa-6d5b-0377-1d53881e998b@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3578785802023643042==" List-Id: <development.lists.ipfire.org> --===============3578785802023643042== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - Swap colour generation to improve readability in case of no active SSH logi= ns - Unify table layout - Improve German "SSH host key" translation to avoid Deppenleerzeichen This patch does not introduce functional changes. Signed-off-by: Peter M=C3=BCller <peter.mueller(a)ipfire.org> --- html/cgi-bin/remote.cgi | 8 ++++---- langs/de/cgi-bin/de.pl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html/cgi-bin/remote.cgi b/html/cgi-bin/remote.cgi index 31e4f4085..9e566201d 100644 --- a/html/cgi-bin/remote.cgi +++ b/html/cgi-bin/remote.cgi @@ -185,7 +185,7 @@ print "</form>\n"; =20 &Header::openbox('100%', 'center', $Lang::tr{'ssh host keys'}); =20 -print "<table class=3D'tbl'>\n"; +print "<table class=3D'tbl' width=3D'100%'>\n"; =20 print <<END <thead> @@ -213,7 +213,7 @@ print "</tbody>\n</table>\n"; &Header::openbox('100%', 'center', $Lang::tr{'ssh active sessions'}); =20 print <<END; - <table class=3D"tbl" width=3D'66%'> + <table class=3D"tbl" width=3D"100%"> <thead> <tr> <th align=3D"center"> @@ -273,7 +273,7 @@ sub printactivelogins() if ( scalar(@output) =3D=3D 0 ) { # no logins appeared - my $table_colour =3D ($id++ % 2) ? $color{'color22'} : $color{'color20'}; + my $table_colour =3D ($id++ % 2) ? $color{'color20'} : $color{'color22'}; print "<tr bgcolor=3D'$table_colour'><td colspan=3D'5'>$Lang::tr{'ssh no a= ctive logins'}</td></tr>\n"; } else { # list active logins... @@ -295,7 +295,7 @@ sub printactivelogins() my $rdns =3D gethostbyaddr($iaddr, AF_INET); if (!$rdns) { $rdns =3D $Lang::tr{'ptr lookup failed'}; }; =20 - my $table_colour =3D ($id++ % 2) ? $color{'color22'} : $color{'color20'}; + my $table_colour =3D ($id++ % 2) ? $color{'color20'} : $color{'color22'}; =20 print <<END; <tr bgcolor=3D'$table_colour'> diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index 38c9783f8..b72e4d245 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -2276,7 +2276,7 @@ 'ssh active sessions' =3D> 'Aktive Benutzeranmeldungen', 'ssh agent forwarding' =3D> 'Weiterleitung des SSH-Agenten (Agent Forwarding= ) zulassen', 'ssh fingerprint' =3D> 'Fingerabdruck', -'ssh host keys' =3D> 'SSH Host Schl=C3=BCssel', +'ssh host keys' =3D> 'SSH-Serverschl=C3=BCssel', 'ssh is disabled' =3D> 'Secure Shell ist deaktiviert. Halte an.', 'ssh is enabled' =3D> 'Secure Shell ist aktiviert. Starte neu.', 'ssh key' =3D> 'Schl=C3=BCssel', --=20 2.26.2 --===============3578785802023643042==--