summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/milestones/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/milestones/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/milestones/confirm-delete.html.tmpl')
-rw-r--r--template/en/default/admin/milestones/confirm-delete.html.tmpl35
1 files changed, 17 insertions, 18 deletions
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 @@
</tr>
<tr>
<td valign="top">Milestone:</td>
- <td valign="top">[% name FILTER html %]</td>
+ <td valign="top">[% milestone.name FILTER html %]</td>
</tr>
<tr>
<td valign="top">Milestone 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 milestone.bug_count %]
<a title="List of [% terms.bugs %] targetted at milestone '
- [% name FILTER html %]'"
- href="buglist.cgi?target_milestone=[% name FILTER url_quote %]&amp;product=
- [%- product FILTER url_quote %]">[% bug_count %]</a>
+ [% milestone.name FILTER html %]'"
+ href="buglist.cgi?target_milestone=[% milestone.name FILTER url_quote %]&amp;product=
+ [%- product.name FILTER url_quote %]">
+ [% milestone.bug_count FILTER none %]</a>
[% ELSE %]
None
[% END %]
@@ -66,13 +65,13 @@
<h2>Confirmation</h2>
-[% IF bug_count %]
+[% IF milestone.bug_count %]
<table border="0" cellpadding="20" width="70%" bgcolor="red">
<tr><td>
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 @@
<form method="post" action="editmilestones.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="milestone" value="[% name FILTER html %]">
+ <input type="hidden" name="product" value="[% product.name FILTER html %]">
+ <input type="hidden" name="milestone" value="[% milestone.name FILTER html %]">
</form>
[% PROCESS admin/milestones/footer.html.tmpl %]