summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/versions/confirm-delete.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-03-02 07:10:22 +0100
committerlpsolit%gmail.com <>2006-03-02 07:10:22 +0100
commitbf646df2bc21afc10dc0b074b13c8742ef43d461 (patch)
tree6e9955da4b5d96e907f5858e93ed4b7e07cdee54 /template/en/default/admin/versions/confirm-delete.html.tmpl
parent6efc4495cf42c61f31397374618ea55bd31a9983 (diff)
downloadbugzilla-bf646df2bc21afc10dc0b074b13c8742ef43d461.tar.gz
bugzilla-bf646df2bc21afc10dc0b074b13c8742ef43d461.tar.xz
Bug 311258: use objects in admin templates (products & co) - Patch by André Batosti <batosti@async.com.br> r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/admin/versions/confirm-delete.html.tmpl')
-rw-r--r--template/en/default/admin/versions/confirm-delete.html.tmpl39
1 files changed, 19 insertions, 20 deletions
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 @@
</tr>
<tr>
<td valign="top">Version:</td>
- <td valign="top">[% name FILTER html %]</td>
+ <td valign="top">[% version.name FILTER html %]</td>
</tr>
<tr>
<td valign="top">Version of Product:</td>
- <td valign="top">[% product FILTER html %]</td>
+ <td valign="top">[% product.name FILTER html %]</td>
</tr>
<tr>
<td valign="top">[% terms.Bugs %]:</td>
<td valign="top">
-[% IF bug_count %]
+[% IF version.bug_count %]
<a title="List of [% terms.bugs %] targetted at version '
- [% name FILTER html %]'"
- href="buglist.cgi?version=[% name FILTER url_quote %]&amp;product=
- [%- product FILTER url_quote %]">[% bug_count %]</a>
+ [%- version.name FILTER html %]'"
+ href="buglist.cgi?version=[% version.name FILTER url_quote %]&amp;product=
+ [%- product.name FILTER url_quote %]">
+ [%- version.bug_count FILTER none %]</a>
[% ELSE %]
None
[% END %]
@@ -66,18 +65,18 @@
<h2>Confirmation</h2>
-[% 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 @@
<form method="post" action="editversions.cgi">
<input type="submit" value="Yes, delete">
<input type="hidden" name="action" value="delete">
- <input type="hidden" name="product" value="[% product FILTER html %]">
- <input type="hidden" name="version" value="[% name FILTER html %]">
+ <input type="hidden" name="product" value="[% product.name FILTER html %]">
+ <input type="hidden" name="version" value="[% version.name FILTER html %]">
</form>
[% END %]