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

Confirmation

-[% IF bug_count %] +[% IF version.bug_count %] Sorry, there - [% IF bug_count > 1 %] - are [% bug_count %] [%+ terms.bugs %] + [% IF version.bug_count > 1 %] + are [% version.bug_count FILTER none %] [%+ terms.bugs %] [% ELSE %] - is [% bug_count %] [%+ terms.bug %] + is [% version.bug_count FILTER none %] [%+ terms.bug %] [% END %] outstanding for this version. You must move - [% IF bug_count > 1 %] + [% IF version.bug_count > 1 %] those [% terms.bugs %] [% ELSE %] that [% terms.bug %] @@ -91,8 +90,8 @@
- - + +
[% END %] -- cgit v1.2.3-24-g4f1b