Commit 739565fd authored by gerv%gerv.net's avatar gerv%gerv.net

Add strikethrough to resolved bug numbers. Bug 79816. r=jake.

parent d4d34ee5
...@@ -86,7 +86,7 @@ else ...@@ -86,7 +86,7 @@ else
} }
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") ...@@ -158,7 +158,7 @@ if ($sortby eq "delta")
} }
elsif ($sortby eq "bug_no") 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") elsif ($sortby eq "dup_count")
{ {
...@@ -170,27 +170,39 @@ my $i = 0; ...@@ -170,27 +170,39 @@ my $i = 0;
foreach (@sortedcount) foreach (@sortedcount)
{ {
my $id = $_; 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"); " 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; next unless $groupset == 0;
$summary = html_quote($summary); $summary = html_quote($summary);
print "<tr>";
print '<td><center><A HREF="show_bug.cgi?id=' . $id . '">'; unless ( ($bug_status eq "VERIFIED") | ($bug_status eq "CLOSED") ) {
print $id . "</A></center></td>"; print "<tr>";
print "<td><center>$count{$id}</center></td>"; print '<td><center>';
if ($dobefore) if ( ($bug_status eq "RESOLVED") ) {
{ print "<strike>";
print "<td><center>$delta{$id}</center></td>"; }
print "<A HREF=\"show_bug.cgi?id=" . $id . "\">";
print $id . "</A>";
if ( ($bug_status eq "RESOLVED") ) {
print "</strike>";
}
print "</center></td>";
print "<td><center>$count{$id}</center></td>";
if ($dobefore)
{
print "<td><center>$delta{$id}</center></td>";
}
print "<td>$component</td>\n ";
print "<td><center>$severity</center></td>";
print "<td><center>$op_sys</center></td>";
print "<td><center>$milestone</center></td>";
print "<td>$summary</td>";
print "</tr>\n";
$i++;
} }
print "<td>$component</td>\n ";
print "<td><center>$severity</center></td>";
print "<td><center>$op_sys</center></td>";
print "<td><center>$milestone</center></td>";
print "<td>$summary</td>";
print "</tr>\n";
$i++;
if ($i == $maxrows) if ($i == $maxrows)
{ {
last; last;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment