X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=maps%2Flib%2FMAPSWeb.pm;h=59ec10bee2cc38ca788d667b35a8cee742e83271;hb=b116c94968d6b617afc02a7d0ffb940757054b6a;hp=3389c6a7bde03b285108d22201fae8f033a879ee;hpb=8d6e59ba7728e19d42da1533b9f24d0216867899;p=clearscm.git
diff --git a/maps/lib/MAPSWeb.pm b/maps/lib/MAPSWeb.pm
index 3389c6a..59ec10b 100644
--- a/maps/lib/MAPSWeb.pm
+++ b/maps/lib/MAPSWeb.pm
@@ -44,7 +44,7 @@ sub getquickstats(%) {
my $date = $params{date};
- for (@MAPSLog::Types) {
+ for (@Types) {
$dates{$date}{processed} += $dates{$date}{$_};
} # for
@@ -69,11 +69,15 @@ sub displayquickstats($) {
'Today\'s Activity';
print p {-align => 'center'},
b ('as of ' . FormatTime($time));
+
+ print start_div {-id => 'quickstats'};
+
print start_table {
- -align => 'center',
- -border => 0,
-cellspacing => 0,
- -cellpadding => 2};
+ -border => 0,
+ -align => 'center',
+ -cellpadding => 2,
+ };
print start_Tr {-align => 'right'};
print
td {-class => 'smalllabel',
@@ -89,9 +93,10 @@ sub displayquickstats($) {
'n/a';
print end_Tr;
- for (@MAPSLog::Types) {
+ for (@Types) {
print start_Tr {-align => 'right'};
+ my $foo = $_;
my $value = $dates{$date}{$_};
my $percent;
@@ -105,13 +110,9 @@ sub displayquickstats($) {
my $report = ucfirst $_;
- if ($value) {
- $report = a {-href => "detail.cgi?type=$_;date=$date"}, $report;
- $value = a {-href => "detail.cgi?type=$_;date=$date"}, $value;
- $percent = a {-href => "detail.cgi?type=$_;date=$date"}, $percent;
- } # if
+ $report = a {-href => "detail.cgi?type=$_;date=$date"}, $report if $value;
- print td {-class => 'smalllabel'}, $report,
+ print td {-class => 'link'}, $report,
td {-class => 'smallnumber'}, $value,
td {-class => 'smallnumber'}, $percent;
@@ -120,6 +121,7 @@ sub displayquickstats($) {
print end_table;
print end_div;
+ print end_div;
return;
} # displayquickstats
@@ -281,7 +283,7 @@ sub NavigationBar($) {
print start_div {-id => 'leftbar'};
unless ($userid) {
- print h2({-align => 'center'}, font({-color => 'white'}, "MAPS $MAPS::Version"));
+ print h2({-align => 'center'}, font({-color => 'white'}, "MAPS $MAPS::VERSION"));
print div ({-class => 'username'}, 'Welcome to MAPS');
print div ({-class => 'menu'},
(a {-href => '/maps/doc/'},
@@ -298,7 +300,7 @@ sub NavigationBar($) {
'Help
'),
);
} else {
- print h2({-align => 'center'}, font({-color => 'white'}, "MAPS $MAPS::Version"));
+ print h2({-align => 'center'}, font({-color => 'white'}, "MAPS $MAPS::VERSION"));
print div ({-class => 'username'}, 'Welcome '. ucfirst $userid);
print div ({-class => 'menu'},
@@ -319,7 +321,7 @@ sub NavigationBar($) {
(a {-href => '/maps/doc/'},
'Help
'),
(a {-href => '/maps/adm/'},
- 'MAPS
'),
+ 'Admin
'),
(a {-href => '/maps/?logout=yes'},
'Logout'),
);