X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ad27efa6a3b7e8feea8497c24acebe5bd501156b..08b6539d1b4a06760bd12208b76f15e767d336d4:/bin/mozilla/kopf.pl diff --git a/bin/mozilla/kopf.pl b/bin/mozilla/kopf.pl index eef8b77d0..952405c30 100644 --- a/bin/mozilla/kopf.pl +++ b/bin/mozilla/kopf.pl @@ -25,8 +25,8 @@ foreach (@felder) { $name = $wert; } my $login = - "[" . $form->{login} - . " - " + "". $locale->text('User') . ": " . $form->{login} + . " [text('Logout now') . "\">" . $locale->text('Logout') . "] "; my ($Sekunden, $Minuten, $Stunden, $Monatstag, $Monat, @@ -108,17 +108,21 @@ window.onload=clockon |; # +my $framesize = _calc_framesize(); # framesize calculation as in menu.pl is only a quick and dirty hack here + # it would be better to use a global or config variable + print qq| - +
-  [| . $locale->text('Print') . qq|] + [| . $locale->text('Menu') . qq|]  [| . $locale->text('New Win/Tab') . qq|] +  [| . $locale->text('Print') . qq|]  [| . $locale->text('Back') . qq|]  [| . $locale->text('Fwd') . qq|] - + | . $login . $datum . qq|   @@ -129,6 +133,16 @@ print qq| |; +sub _calc_framesize { + my $is_lynx_browser = $ENV{HTTP_USER_AGENT} =~ /links/i; + my $is_mobile_browser = $ENV{HTTP_USER_AGENT} =~ /mobile/i; + my $is_mobile_style = $::form->{stylesheet} =~ /mobile/i; + + return $is_mobile_browser && $is_mobile_style ? 130 + : $is_lynx_browser ? 240 + : 180; +} + } 1;