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 --- .../admin/milestones/confirm-delete.html.tmpl | 35 +++++++++++----------- 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'template/en/default/admin/milestones/confirm-delete.html.tmpl') diff --git a/template/en/default/admin/milestones/confirm-delete.html.tmpl b/template/en/default/admin/milestones/confirm-delete.html.tmpl index 61601d185..6a7900e72 100644 --- a/template/en/default/admin/milestones/confirm-delete.html.tmpl +++ b/template/en/default/admin/milestones/confirm-delete.html.tmpl @@ -21,15 +21,13 @@ #%] [%# INTERFACE: - # name: string; The name of the milestone - # - # bug_count: number; The number of bugs targetted at the milestone - # - # product: string; The name of the product - # + # product: object; Bugzilla::Product object representing the product to + # which the milestone belongs. + # milestone: object; Bugzilla::Milestone object representing the + # milestone the user wants to delete. #%] -[% title = BLOCK %]Delete Milestone of Product '[% product FILTER html %]' +[% title = BLOCK %]Delete Milestone of Product '[% product.name FILTER html %]' [% END %] [% PROCESS global/header.html.tmpl @@ -43,20 +41,21 @@ Milestone: - [% name FILTER html %] + [% milestone.name FILTER html %] Milestone of Product: - [% product FILTER html %] + [% product.name FILTER html %] [% terms.Bugs %]: -[% IF bug_count %] +[% IF milestone.bug_count %] [% bug_count %] + [% milestone.name FILTER html %]'" + href="buglist.cgi?target_milestone=[% milestone.name FILTER url_quote %]&product= + [%- product.name FILTER url_quote %]"> + [% milestone.bug_count FILTER none %] [% ELSE %] None [% END %] @@ -66,13 +65,13 @@

Confirmation

-[% IF bug_count %] +[% IF milestone.bug_count %]
There - [% IF bug_count > 1 %] - are [% bug_count %] [%+ terms.bugs %] + [% IF milestone.bug_count > 1 %] + are [% milestone.bug_count FILTER none %] [%+ terms.bugs %] [% ELSE %] is 1 [% terms.bug %] [% END %] @@ -89,8 +88,8 @@
- - + +
[% PROCESS admin/milestones/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b