From 7d01e4bc12896e1b7f035f708402fc30baa25e03 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" <> Date: Tue, 10 Jan 2006 05:54:16 +0000 Subject: Bug 321691 duplicates.cgi doesn't use r=lpsolit a=justdave --- .../en/default/reports/duplicates-table.html.tmpl | 186 ++++++++++----------- 1 file changed, 92 insertions(+), 94 deletions(-) (limited to 'template/en/default/reports') diff --git a/template/en/default/reports/duplicates-table.html.tmpl b/template/en/default/reports/duplicates-table.html.tmpl index 6017a1e4e..80a85ff3c 100644 --- a/template/en/default/reports/duplicates-table.html.tmpl +++ b/template/en/default/reports/duplicates-table.html.tmpl @@ -48,101 +48,99 @@ [% IF bug_ids.size > 0 %] - - [% FOREACH column = [ { name => "id", description => "$terms.Bug #" }, - { name => "count", description => "Dupe
Count" }, - { name => "delta", - description => "Change in last
$changedsince day(s)" }, - { name => "component", description => "Component" }, - { name => "bug_severity", description => "Severity" }, - { name => "op_sys", description => "Op Sys" }, - { name => "target_milestone", - description => "Target
Milestone" }, - { name => "short_desc", description => "Summary" } ] - %] - - [%# Small hack to keep delta column out if we don't need it %] - [% NEXT IF column.name == "delta" AND NOT dobefore %] - - + + + [% FOREACH column = [ { name => "id", description => "$terms.Bug #" }, + { name => "count", description => "Dupe
Count" }, + { name => "delta", + description => "Change in last
$changedsince day(s)" }, + { name => "component", description => "Component" }, + { name => "bug_severity", description => "Severity" }, + { name => "op_sys", description => "Op Sys" }, + { name => "target_milestone", + description => "Target
Milestone" }, + { name => "short_desc", description => "Summary" } ] + %] + + [%# Small hack to keep delta column out if we don't need it %] + [% NEXT IF column.name == "delta" AND NOT dobefore %] + + + [% END %] + + + + [% IF NOT sortby %] + [% sortby = "count"; reverse = "1" %] + [% END %] + + [% IF sortby == "id" OR sortby == "count" OR sortby == "delta" %] + [%# Numeric sort %] + [% sortedbugs = bugs.nsort(sortby) %] + [% ELSE %] + [% sortedbugs = bugs.sort(sortby) %] + [% END %] + + [% IF reverse %] + [% bugs = sortedbugs.reverse %] + [% ELSE %] + [% bugs = sortedbugs %] + [% END %] + + [%# *** Buglist *** %] + + + [%# We need to keep track of the bug IDs we are actually displaying, because + # if the user decides to sort the visible list, we need to know what that + # list actually is. %] + [% vis_bug_ids = [] %] + + [% FOREACH bug = bugs %] + [% LAST IF loop.index() >= maxrows %] + [% vis_bug_ids.push(bug.id) %] + + + + + + + [% IF dobefore %] + + [% END %] + + + + + + + [% END %] - - - [% IF NOT sortby %] - [% sortby = "count"; reverse = "1" %] - [% END %] - - [% IF sortby == "id" OR sortby == "count" OR sortby == "delta" %] - [%# Numeric sort %] - [% sortedbugs = bugs.nsort(sortby) %] - [% ELSE %] - [% sortedbugs = bugs.sort(sortby) %] - [% END %] - - [% IF reverse %] - [% bugs = sortedbugs.reverse %] - [% ELSE %] - [% bugs = sortedbugs %] - [% END %] - - [%# *** Buglist *** %] - - [%# We need to keep track of the bug IDs we are actually displaying, because - # if the user decides to sort the visible list, we need to know what that - # list actually is. %] - [% vis_bug_ids = [] %] - - [% FOREACH bug = bugs %] - [% LAST IF loop.index() >= maxrows %] - [% vis_bug_ids.push(bug.id) %] - - - - - - - [% IF dobefore %] - - [% END %] - - - - - - - - [% END %] - +
-
- - [% bug_ids_string = bug_ids.join(',') %] - - [% column.description %] - -
-
+ [% bug_ids_string = bug_ids.join(',') %] + + [% column.description %] +
+
+ [% isclosed = bug.resolution != "" %] + [% bug.id FILTER closed(isclosed) %] +
+
+
+ [% bug.count %] +
+
[% bug.delta %]
[% bug.component FILTER html %]
[% bug.bug_severity FILTER html %]
[% bug.op_sys FILTER html %]
[% bug.target_milestone FILTER html %]
[% bug.short_desc FILTER html %]
-
- [% isclosed = bug.resolution != "" %] - [% bug.id FILTER closed(isclosed) %] -
-
-
- [% bug.count %] -
-
[% bug.delta %]
[% bug.component FILTER html %]
[% bug.bug_severity FILTER html %]
[% bug.op_sys FILTER html %]
[% bug.target_milestone FILTER html %]
[% bug.short_desc FILTER html %]
[% ELSE %]

No duplicate [% terms.bugs %] found.

-- cgit v1.2.3-24-g4f1b