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/deleted.html.tmpl | 26 ++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'template/en/default/admin/components/deleted.html.tmpl') diff --git a/template/en/default/admin/components/deleted.html.tmpl b/template/en/default/admin/components/deleted.html.tmpl index 83c006869..2b89ac0f3 100644 --- a/template/en/default/admin/components/deleted.html.tmpl +++ b/template/en/default/admin/components/deleted.html.tmpl @@ -20,27 +20,25 @@ #%] [%# INTERFACE: - # name: string; the name of the deleted component. - # - # product: string; the name of the product the component belonged to - # - # deleted_bug_count: number; the number of bugs which were deleted - # (if bug deletion is allowed) + # comp: object; Bugzilla::Component object representing the component the + # user deleted. + # product: object; Bugzilla::Product object representing the product to + # which the component belongs. #%] -[% title = BLOCK %]Deleted Component '[% name FILTER html %]' from Product - '[% product FILTER html %]'[% END %] +[% title = BLOCK %]Deleted Component '[% comp.name FILTER html %]' from Product + '[% product.name FILTER html %]'[% END %] [% PROCESS global/header.html.tmpl title = title %]

-[% IF deleted_bug_count %] - [% deleted_bug_count %] - [%- IF deleted_bug_count > 1 %] - [% terms.bugs %] +[% IF comp.bug_count %] + [% comp.bug_count FILTER none %] + [%- IF comp.bug_count > 1 %] + [%+ terms.bugs %] [% ELSE %] - [% terms.bug %] + [%+ terms.bug %] [% END %] deleted.

@@ -52,7 +50,7 @@

Flag inclusions and exclusions deleted.

-

Component '[% name FILTER html %]' deleted.

+

Component '[% comp.name FILTER html %]' deleted.

[% PROCESS admin/components/footer.html.tmpl no_edit_component_link = 1 -- cgit v1.2.3-24-g4f1b