summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/choose-product.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-03-15 07:37:16 +0100
committerlpsolit%gmail.com <>2006-03-15 07:37:16 +0100
commit577a3b3540fa2331e41f51cc2a2201ce902df289 (patch)
treec96a82490c6640d98c299bfdf7c09a8c01aae4e2 /template/en/default/global/choose-product.html.tmpl
parent0f3a9f4b320a7068a9f776b3e0ea4dad3df3d448 (diff)
downloadbugzilla-577a3b3540fa2331e41f51cc2a2201ce902df289.tar.gz
bugzilla-577a3b3540fa2331e41f51cc2a2201ce902df289.tar.xz
Bug 311422: describecomponents.cgi and enter_bug.cgi need some cleanup - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=myk
Diffstat (limited to 'template/en/default/global/choose-product.html.tmpl')
-rw-r--r--template/en/default/global/choose-product.html.tmpl17
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 %]&amp;cloned_bug_id=[% cloned_bug_id FILTER url_quote %][% END -%]
[%- IF format %]&amp;format=[% format FILTER url_quote %][% END %]">
- [% p FILTER html %]</a>:&nbsp;
+ [% p.name FILTER html %]</a>:&nbsp;
</th>
- [% IF proddesc.$p %]
- <td valign="top">[% proddesc.$p %]</td>
- [% END %]
+ <td valign="top">[% p.description FILTER none %]</td>
</tr>
[% END %]