From bf646df2bc21afc10dc0b074b13c8742ef43d461 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 2 Mar 2006 06:10:22 +0000 Subject: Bug 311258: use objects in admin templates (products & co) - Patch by André Batosti r=LpSolit a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../en/default/admin/components/list.html.tmpl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'template/en/default/admin/components/list.html.tmpl') 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 %] -

Add - a new component to product '[% product FILTER html %]'

+

Add + a new component to product '[% product.name FILTER html %]'

[% IF ! showbugcounts %] -

+

Redisplay table with [% terms.bug %] counts (slower)

[% END %] -- cgit v1.2.3-24-g4f1b