diff options
Diffstat (limited to 'template/en/default/global/choose-classification.html.tmpl')
-rw-r--r-- | template/en/default/global/choose-classification.html.tmpl | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/template/en/default/global/choose-classification.html.tmpl b/template/en/default/global/choose-classification.html.tmpl index b2021f234..627ac860f 100644 --- a/template/en/default/global/choose-classification.html.tmpl +++ b/template/en/default/global/choose-classification.html.tmpl @@ -18,8 +18,8 @@ #%] [%# INTERFACE: - # classdesc: hash. May be empty. The hash keys are the classifications, and the values - # are their descriptions. + # classifications: an array of classification objects containing + # at least one product accessible by the user. #%] [% IF target == "enter_bug.cgi" %] @@ -45,21 +45,19 @@ </tr> [% END %] -[% FOREACH p = classdesc.keys.sort %] - [% IF classifications.$p.size > 0 %] +[% FOREACH class = classifications %] <tr> <th align="right" valign="top"> - <a href="[% target FILTER url_quote %]?classification=[% p FILTER url_quote -%] + <a href="[% target FILTER url_quote %]?classification=[% class.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>: + [% class.name FILTER html %]</a>: </th> - [% IF classdesc.$p %] - <td valign="top"> [% classdesc.$p %]</td> + [% IF class.description %] + <td valign="top"> [% class.description %]</td> [% END %] </tr> - [% END %] [% END %] </table> |