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/updated.html.tmpl | 29 +++++++++++----------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'template/en/default/admin/components/updated.html.tmpl') diff --git a/template/en/default/admin/components/updated.html.tmpl b/template/en/default/admin/components/updated.html.tmpl index b4c4fea3c..e05bc0973 100644 --- a/template/en/default/admin/components/updated.html.tmpl +++ b/template/en/default/admin/components/updated.html.tmpl @@ -23,22 +23,23 @@ # # 'updated_XXX' variables are booleans, and are defined if the # 'XXX' field was updated during the edit just being handled. - # Variables called just 'XXX' are strings, and are the _new_ contents - # of the fields. # - # name & updated_name: the name of the component + # updated_name: the name of the component updated # - # description & updated_description: the component description + # updated_description: the component description updated # - # initialowner & updated_initialowner: the default assignee + # updated_initialowner: the default assignee updated # - # initialqacontact & updated_initialqacontact: the default qa contact + # updated_initialqacontact: the default qa contact updated # - # product: string; the name of the product the component belongs to + # comp: object; Bugzilla::Component object representing the component + # user updated. + # product: object; Bugzilla::Product object representing the product to + # which the component belongs. #%] -[% title = BLOCK %]Updating Component '[% name FILTER html %]' of Product - '[% product FILTER html %]'[% END %] +[% title = BLOCK %]Updating Component '[% comp.name FILTER html %]' of Product + '[% product.name FILTER html %]'[% END %] [% PROCESS global/header.html.tmpl title = title %] @@ -48,19 +49,19 @@ - +
Updated description to:'[% description FILTER html %]''[% comp.description FILTER html %]'
[% END %] [% IF updated_initialowner %] -

Updated Default Assignee to: '[% initialowner FILTER html %]'.

+

Updated Default Assignee to: '[% comp.initialowner FILTER html %]'.

[% END %] [% IF updated_initialqacontact %]

[% IF initialqacontact %] - Updated Default QA Contact to '[% initialqacontact FILTER html %]'. + Updated Default QA Contact to '[% comp.initialqacontact FILTER html %]'. [% ELSE %] Removed Default QA Contact. [% END %] @@ -68,12 +69,12 @@ [% END %] [% IF updated_name %] -

Updated Component name to: '[% name FILTER html %]'.

+

Updated Component name to: '[% comp.name FILTER html %]'.

[% END %] [% UNLESS updated_description || updated_initialowner || updated_initialqacontact || updated_name %] -

Nothing changed for component '[% name FILTER html %]'. +

Nothing changed for component '[% comp.name FILTER html %]'. [% END %] -- cgit v1.2.3-24-g4f1b