diff options
Diffstat (limited to 'template/en')
-rw-r--r-- | template/en/default/reports/duplicates-table.html.tmpl | 4 | ||||
-rw-r--r-- | template/en/default/reports/duplicates.html.tmpl | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/template/en/default/reports/duplicates-table.html.tmpl b/template/en/default/reports/duplicates-table.html.tmpl index 34e070f10..d2205f2c0 100644 --- a/template/en/default/reports/duplicates-table.html.tmpl +++ b/template/en/default/reports/duplicates-table.html.tmpl @@ -39,7 +39,7 @@ # maxrows: integer. Max number of rows to display. # changedsince: integer. The number of days ago for the changedsince column. # openonly: boolean. True if we are only showing open bugs. - # product: string. Restrict to this product only. + # query_products: list of strings. Restrict to these products only. #%] [% PROCESS global/variables.none.tmpl %] @@ -78,7 +78,7 @@ [% "&maxrows=$maxrows" IF maxrows %] [% "&changedsince=$changedsince" IF changedsince %] [% "&openonly=1" IF openonly %] - [% IF product %]&product=[% product FILTER html %][% END %] + [% FOREACH p = query_products %]&product=[% p FILTER html %][% END %] [% IF format %]&format=[% format FILTER html %][% END %] [% "&bug_id=$bug_ids_string&sortvisible=1" IF sortvisible %]"> diff --git a/template/en/default/reports/duplicates.html.tmpl b/template/en/default/reports/duplicates.html.tmpl index bff971f89..fb3184cf6 100644 --- a/template/en/default/reports/duplicates.html.tmpl +++ b/template/en/default/reports/duplicates.html.tmpl @@ -27,7 +27,7 @@ # maxrows: integer. Max number of rows to display. # changedsince: integer. The number of days ago for the changedsince column. # openonly: boolean. True if we are only showing open bugs. - # product: string. Restrict to this product only. + # query_products: list of strings. The set of products we check for dups. # # Additionally, you need to fulfill the interface to # duplicates-table.html.tmpl. @@ -35,8 +35,8 @@ [% PROCESS global/variables.none.tmpl %] -[% IF product %] - [% title = "Most Frequently Reported $terms.Bugs for $product" %] +[% IF query_products.size %] + [% title = "Most Frequently Reported $terms.Bugs for ${query_products.join(', ')}" %] [% ELSE %] [% title = "Most Frequently Reported $terms.Bugs" %] [% END%] @@ -85,7 +85,8 @@ <select name="product" size="5" multiple="multiple"> [% FOREACH p = products %] <option name="[% p FILTER html %]" - [% " selected" IF product == p %]>[% p FILTER html %]</option> + [% " selected" IF lsearch(query_products, p) != -1 %] + >[% p FILTER html %]</option> [% END %] </select> </td> |