From 739565fdef5d8b71cbc01f10a255ad3401a10b25 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Mon, 2 Jul 2001 03:17:28 +0000 Subject: Add strikethrough to resolved bug numbers. Bug 79816. r=jake. --- duplicates.cgi | 50 +++++++++++++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 19 deletions(-) (limited to 'duplicates.cgi') diff --git a/duplicates.cgi b/duplicates.cgi index 9eeff20fd..cd0e87930 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -86,7 +86,7 @@ else } else { - &die_politely("There are no duplicate statistics for today or yesterday."); + &die_politely("There are no duplicate statistics for today ($today) or yesterday."); } } @@ -158,7 +158,7 @@ if ($sortby eq "delta") } elsif ($sortby eq "bug_no") { - @sortedcount = sort by_bug_no keys(%count); + @sortedcount = reverse sort by_bug_no keys(%count); } elsif ($sortby eq "dup_count") { @@ -170,27 +170,39 @@ my $i = 0; foreach (@sortedcount) { my $id = $_; - SendSQL("SELECT component, bug_severity, op_sys, target_milestone, short_desc, groupset " . + SendSQL("SELECT component, bug_severity, op_sys, target_milestone, short_desc, groupset, bug_status" . " FROM bugs WHERE bug_id = $id"); - my ($component, $severity, $op_sys, $milestone, $summary, $groupset) = FetchSQLData(); + my ($component, $severity, $op_sys, $milestone, $summary, $groupset, $bug_status) = FetchSQLData(); next unless $groupset == 0; $summary = html_quote($summary); - print ""; - print '
'; - print $id . "
"; - print "
$count{$id}
"; - if ($dobefore) - { - print "
$delta{$id}
"; + + unless ( ($bug_status eq "VERIFIED") | ($bug_status eq "CLOSED") ) { + print ""; + print '
'; + if ( ($bug_status eq "RESOLVED") ) { + print ""; + } + print ""; + print $id . ""; + if ( ($bug_status eq "RESOLVED") ) { + print ""; + } + print "
"; + print "
$count{$id}
"; + if ($dobefore) + { + print "
$delta{$id}
"; + } + print "$component\n "; + print "
$severity
"; + print "
$op_sys
"; + print "
$milestone
"; + print "$summary"; + print "\n"; + + $i++; } - print "$component\n "; - print "
$severity
"; - print "
$op_sys
"; - print "
$milestone
"; - print "$summary"; - print "\n"; - - $i++; + if ($i == $maxrows) { last; -- cgit v1.2.3-24-g4f1b