From 8b725463c37f431d33489d6e48542d9a4d4be906 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Fri, 4 Feb 2000 22:07:58 +0000 Subject: Add an optional ability to stagger the headers in the bug list, which is uglier, but often squeezes things better horizontally. --- buglist.cgi | 42 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index fc213137b..18d8c5c4a 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -943,26 +943,52 @@ if ($dotweak) { pnl "
"; } -my $tablestart = " -"; + push(@th, $h); } } +my $tablestart = "
-ID"; - +my @th; foreach my $c (@collist) { if (exists $::needquote{$c}) { + my $h = ""; if ($::needquote{$c}) { - $tablestart .= ""; + $h .= ""; } else { - $tablestart .= ""; + $h .= ""; } if (defined $::sortkey{$c}) { - $tablestart .= "$::title{$c}"; + $h .= "$::title{$c}"; } else { - $tablestart .= $::title{$c}; + $h .= $::title{$c}; } + $h .= "
+
+ID"; + +my $splitheader = 0; +if ($::COOKIE{'SPLITHEADER'}) { + $splitheader = 1; +} + +if ($splitheader) { + $tablestart =~ s/