From: terry%mozilla.org <> Date: Fri, 4 Feb 2000 22:07:58 +0000 (+0000) Subject: Add an optional ability to stagger the headers in the bug list, which X-Git-Tag: bugzilla-2.12~396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b725463c37f431d33489d6e48542d9a4d4be906;p=thirdparty%2Fbugzilla.git Add an optional ability to stagger the headers in the bug list, which is uglier, but often squeezes things better horizontally. --- diff --git a/buglist.cgi b/buglist.cgi index fc213137b2..18d8c5c4ae 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/What a hack.\n"; @@ -81,6 +86,11 @@ if (defined $::COOKIE{'COLUMNLIST'}) { @collist = @::default_column_list; } +my $splitheader = 0; +if ($::COOKIE{'SPLITHEADER'}) { + $splitheader = 1; +} + my %desc; foreach my $i (@masterlist) { @@ -109,6 +119,12 @@ foreach my $i (@masterlist) { print "$desc{$i}
\n"; } print "

\n"; +print BuildPulldown("splitheader", + [["0", "Normal headers (prettier)"], + ["1", "Stagger headers (often makes list more compact)"]], + $splitheader); +print "

\n"; + print "\n"; print "\n"; print "

\n";