From: doogie <> Date: Thu, 18 Sep 2003 05:44:30 +0000 (-0800) Subject: [project @ 2003-09-17 22:44:30 by doogie] X-Git-Tag: release/2.6.0~790 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=edcbd0a2d20022d50f1a6bb9b76b1c7cbc235336;p=debbugs.git [project @ 2003-09-17 22:44:30 by doogie] Move the stats to the bottom of the page, and no longer use a table for the ToC. --- diff --git a/cgi/common.pl b/cgi/common.pl index 524d60f..762a71d 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -476,6 +476,7 @@ sub htmlizebugs { my @status = (); my %count; + my ($header, $footer); if (@bugs == 0) { return "

No reports found!

\n"; @@ -528,28 +529,15 @@ sub htmlizebugs { push @headers, map( { $common_headers{$common_grouping[$i]}{$_} } @items ); } } - $result .= "\n
\n"; - $result .= "
    \n"; + $header .= "
      \n"; for ( my $i = 0; $i < @order; $i++ ) { my $order = $order[ $i ]; next unless defined $section{$order}; my $count = $count{"_$order"}; my $bugs = $count == 1 ? "bug" : "bugs"; - $result .= "
    • $headers[$i] ($count $bugs)
    • \n"; + $header .= "
    • $headers[$i] ($count $bugs)
    • \n"; } - $result .= "
    \n
\n
    \n"; - foreach my $grouping ( @common_grouping ) { - my $local_result = ''; - foreach my $key ( @{$common_grouping_order{ $grouping }} ) { - my $count = $count{"${grouping}_$key"}; - next if !$count; - $local_result .= "
  • $count $common_headers{$grouping}{$key}
  • \n"; - } - if ( $local_result ) { - $result .= "
  • $common_grouping_display{$grouping}
      \n$local_result
  • \n"; - } - } - $result .= "
\n
"; + $header .= "\n"; for ( my $i = 0; $i < @order; $i++ ) { my $order = $order[ $i ]; next unless defined $section{$order}; @@ -560,9 +548,24 @@ sub htmlizebugs { $result .= $section{$order}; $result .= "\n"; } + $footer .= "\n"; } + $result = $header . $result; $result .= $debbugs::gHTMLExpireNote if $gRemoveAge and $anydone; + $result .= $footer; return $result; }