From edcbd0a2d20022d50f1a6bb9b76b1c7cbc235336 Mon Sep 17 00:00:00 2001 From: doogie <> Date: Wed, 17 Sep 2003 21:44:30 -0800 Subject: [PATCH] [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. --- cgi/common.pl | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/cgi/common.pl b/cgi/common.pl index 524d60f9..762a71da 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; } -- 2.39.5