From: Peter Müller Date: Tue, 22 Dec 2020 16:01:25 +0000 (+0100) Subject: remote.cgi: cosmetic changes X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05f68686a0c4259ad2fcb96e2ea3d2fa71e40a77;p=people%2Fmfischer%2Fipfire-2.x.git remote.cgi: cosmetic changes - Swap colour generation to improve readability in case of no active SSH logins - Unify table layout - Improve German "SSH host key" translation to avoid Deppenleerzeichen This patch does not introduce functional changes. Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/remote.cgi b/html/cgi-bin/remote.cgi index 31e4f40854..9e566201d8 100644 --- a/html/cgi-bin/remote.cgi +++ b/html/cgi-bin/remote.cgi @@ -185,7 +185,7 @@ print "\n"; &Header::openbox('100%', 'center', $Lang::tr{'ssh host keys'}); -print "\n"; +print "
\n"; print < @@ -213,7 +213,7 @@ print "\n
\n"; &Header::openbox('100%', 'center', $Lang::tr{'ssh active sessions'}); print < + \n"; } else { # list active logins... @@ -295,7 +295,7 @@ sub printactivelogins() my $rdns = gethostbyaddr($iaddr, AF_INET); if (!$rdns) { $rdns = $Lang::tr{'ptr lookup failed'}; }; - my $table_colour = ($id++ % 2) ? $color{'color22'} : $color{'color20'}; + my $table_colour = ($id++ % 2) ? $color{'color20'} : $color{'color22'}; print < diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index 38c9783f83..b72e4d245c 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -2276,7 +2276,7 @@ 'ssh active sessions' => 'Aktive Benutzeranmeldungen', 'ssh agent forwarding' => 'Weiterleitung des SSH-Agenten (Agent Forwarding) zulassen', 'ssh fingerprint' => 'Fingerabdruck', -'ssh host keys' => 'SSH Host Schlüssel', +'ssh host keys' => 'SSH-Serverschlüssel', 'ssh is disabled' => 'Secure Shell ist deaktiviert. Halte an.', 'ssh is enabled' => 'Secure Shell ist aktiviert. Starte neu.', 'ssh key' => 'Schlüssel',
@@ -273,7 +273,7 @@ sub printactivelogins() if ( scalar(@output) == 0 ) { # no logins appeared - my $table_colour = ($id++ % 2) ? $color{'color22'} : $color{'color20'}; + my $table_colour = ($id++ % 2) ? $color{'color20'} : $color{'color22'}; print "
$Lang::tr{'ssh no active logins'}