diff options
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/choose-product.html.tmpl | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/template/en/default/global/choose-product.html.tmpl b/template/en/default/global/choose-product.html.tmpl index 078b9b700..346a53751 100644 --- a/template/en/default/global/choose-product.html.tmpl +++ b/template/en/default/global/choose-product.html.tmpl @@ -20,8 +20,11 @@ #%] [%# INTERFACE: - # proddesc: hash. May be empty. The hash keys are the products, and the values - # are their descriptions. + # products: array of product objects. The list of products + # the user can enter bugs into. + # target: the script that displays this template. + # cloned_bug_id: ID of the bug being cloned. + # format: the desired format to display the target. #%] [% PROCESS global/variables.none.tmpl %] @@ -39,18 +42,16 @@ <table> -[% FOREACH p = proddesc.keys.sort %] +[% FOREACH p = products %] <tr> <th align="right" valign="top"> - <a href="[% target %]?product=[% p FILTER url_quote -%] + <a href="[% target %]?product=[% p.name FILTER url_quote -%] [%- IF cloned_bug_id %]&cloned_bug_id=[% cloned_bug_id FILTER url_quote %][% END -%] [%- IF format %]&format=[% format FILTER url_quote %][% END %]"> - [% p FILTER html %]</a>: + [% p.name FILTER html %]</a>: </th> - [% IF proddesc.$p %] - <td valign="top">[% proddesc.$p %]</td> - [% END %] + <td valign="top">[% p.description FILTER none %]</td> </tr> [% END %] |