]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
remote.cgi: cosmetic changes
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 22 Dec 2020 16:01:25 +0000 (17:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Dec 2020 14:31:56 +0000 (14:31 +0000)
- 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 <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/remote.cgi
langs/de/cgi-bin/de.pl

index 31e4f40854486a99000ea90d3ade312b9c74517b..9e566201d80bc9d5346ae06eb2ebe2a75142ffcc 100644 (file)
@@ -185,7 +185,7 @@ print "</form>\n";
 
 &Header::openbox('100%', 'center', $Lang::tr{'ssh host keys'});
 
-print "<table class='tbl'>\n";
+print "<table class='tbl' width='100%'>\n";
 
 print <<END
 <thead>
@@ -213,7 +213,7 @@ print "</tbody>\n</table>\n";
 &Header::openbox('100%', 'center', $Lang::tr{'ssh active sessions'});
 
 print <<END;
-               <table class="tbl" width='66%'>
+               <table class="tbl" width="100%">
                        <thead>
                                <tr>
                                        <th align="center">
@@ -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 "<tr bgcolor='$table_colour'><td colspan='5'>$Lang::tr{'ssh no active logins'}</td></tr>\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 <<END;
                        <tr bgcolor='$table_colour'>
index 38c9783f830d1a028a00531afa98fed7921db8b5..b72e4d245c71b719755412d15af9203d4098938d 100644 (file)
 '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',