summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/components/list.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/admin/components/list.html.tmpl')
-rw-r--r--template/en/default/admin/components/list.html.tmpl22
1 files changed, 11 insertions, 11 deletions
diff --git a/template/en/default/admin/components/list.html.tmpl b/template/en/default/admin/components/list.html.tmpl
index 0b4998679..c0862eb73 100644
--- a/template/en/default/admin/components/list.html.tmpl
+++ b/template/en/default/admin/components/list.html.tmpl
@@ -21,25 +21,25 @@
#%]
[%# INTERFACE:
- # components: array of component objects
# showbugcounts: if defined, then bug counts should be included in the table
- # product: string; the name of the product we are editing components for
+ # product: object; Bugzilla::Product object representing the product to
+ # which the component belongs.
#%]
[% PROCESS global/variables.none.tmpl %]
[% title = BLOCK %]Select component of product
- '[% product FILTER html %]'[% END %]
+ '[% product.name FILTER html %]'[% END %]
[% PROCESS global/header.html.tmpl
title = title
%]
[% edit_contentlink = BLOCK %]editcomponents.cgi?action=edit&product=
- [%- product FILTER url_quote %]&component=%%name%%[% END %]
+ [%- product.name FILTER url_quote %]&component=%%name%%[% END %]
[% delete_contentlink = BLOCK %]editcomponents.cgi?action=del&product=
- [%- product FILTER url_quote %]&component=%%name%%[% END %]
+ [%- product.name FILTER url_quote %]&component=%%name%%[% END %]
[% bug_count_contentlink = BLOCK %]buglist.cgi?component=%%name%%&product=
- [%- product FILTER url_quote %][% END %]
+ [%- product.name FILTER url_quote %][% END %]
[% columns = [
@@ -90,7 +90,7 @@
[% overrides.initialowner = [] %]
[% overrides.initialqacontact = [] %]
-[% FOREACH component = components %]
+[% FOREACH component = product.components %]
[% overrides.initialowner.push({
match_value => component.name
match_field => 'name'
@@ -109,16 +109,16 @@
[% PROCESS admin/table.html.tmpl
columns = columns
- data = components
+ data = product.components
overrides = overrides
%]
-<p><a href="editcomponents.cgi?action=add&amp;product=[% product FILTER url_quote %]">Add</a>
- a new component to product '[% product FILTER html %]'</p>
+<p><a href="editcomponents.cgi?action=add&amp;product=[% product.name FILTER url_quote %]">Add</a>
+ a new component to product '[% product.name FILTER html %]'</p>
[% IF ! showbugcounts %]
- <p><a href="editcomponents.cgi?product=[% product FILTER url_quote %]&amp;showbugcounts=1">
+ <p><a href="editcomponents.cgi?product=[% product.name FILTER url_quote %]&amp;showbugcounts=1">
Redisplay table with [% terms.bug %] counts (slower)</a></p>
[% END %]