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/milestones/deleted.html.tmpl | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'template/en/default/admin/milestones/deleted.html.tmpl') diff --git a/template/en/default/admin/milestones/deleted.html.tmpl b/template/en/default/admin/milestones/deleted.html.tmpl index 8db9b8943..bddae3136 100644 --- a/template/en/default/admin/milestones/deleted.html.tmpl +++ b/template/en/default/admin/milestones/deleted.html.tmpl @@ -21,25 +21,23 @@ #%] [%# INTERFACE: - # name: string; the name of the deleted milestone. - # - # product: string; the name of the product the milestone belonged to - # - # bug_count: number; the number of bugs which were reassigned to - # the default milestone. + # product: object; Bugzilla::Product object representing the product to + # which the milestone belongs. + # milestone: object; Bugzilla::Milestone object representing the + # milestone the user deleted. #%] -[% title = BLOCK %]Deleted Milestone '[% name FILTER html %]' of Product - '[% product FILTER html %]'[% END %] +[% title = BLOCK %]Deleted Milestone '[% milestone.name FILTER html %]' of Product + '[% product.name FILTER html %]'[% END %] [% PROCESS global/header.html.tmpl title = title %]

-[% IF bug_count %] +[% IF milestone.bug_count %] - [% bug_count %] - [% IF bug_count > 1 %] + [% milestone.bug_count FILTER none %] + [% IF milestone.bug_count > 1 %] [%+ terms.bugs %] [% ELSE %] [%+ terms.bug %] @@ -51,7 +49,7 @@ [% END %]

-

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

+

Milestone '[% milestone.name FILTER html %]' deleted.

-- cgit v1.2.3-24-g4f1b