summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/versions/list.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/admin/versions/list.html.tmpl')
-rw-r--r--template/en/default/admin/versions/list.html.tmpl40
1 files changed, 30 insertions, 10 deletions
diff --git a/template/en/default/admin/versions/list.html.tmpl b/template/en/default/admin/versions/list.html.tmpl
index ec47c18d7..b2ed2c343 100644
--- a/template/en/default/admin/versions/list.html.tmpl
+++ b/template/en/default/admin/versions/list.html.tmpl
@@ -17,18 +17,15 @@
# Rights Reserved.
#
# Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org>
+ # Frédéric Buclin <LpSolit@gmail.com>
#%]
[%# INTERFACE:
- # versions: array of hashes having the following properties:
- # - name: string; The name of the version.
- #
+ # versions: array of version objects
+ # showbugcounts: if defined, then bug counts should be included in the table
# product: string; the name of the product we are editing versions for
#%]
-[% USE Bugzilla %]
-[% cgi = Bugzilla.cgi %]
-
[% PROCESS global/variables.none.tmpl %]
[% title = BLOCK %]Select version of product
@@ -41,6 +38,8 @@
[%- product FILTER url_quote %]&amp;version=%%name%%[% END %]
[% delete_contentlink = BLOCK %]editversions.cgi?action=del&amp;product=
[%- product FILTER url_quote %]&amp;version=%%name%%[% END %]
+[% bug_count_contentlink = BLOCK %]buglist.cgi?version=%%name%%&amp;product=
+ [%- product FILTER url_quote %][% END %]
[% columns = [
@@ -48,13 +47,27 @@
name => "name"
heading => "Edit version..."
contentlink => edit_contentlink
- },
- {
+ }
+ ]
+%]
+
+[% IF showbugcounts %]
+
+ [% columns.push({
+ name => "bug_count"
+ heading => "$terms.Bugs"
+ align => "right"
+ contentlink => bug_count_contentlink
+ })
+ %]
+
+[% END %]
+
+[% columns.push({
heading => "Action"
content => "Delete"
contentlink => delete_contentlink
- }
- ]
+ })
%]
[% PROCESS admin/table.html.tmpl
@@ -64,6 +77,13 @@
<p>
+[% IF ! showbugcounts %]
+
+ <p><a href="editversions.cgi?product=[% product FILTER url_quote %]&amp;showbugcounts=1">
+ Redisplay table with [% terms.bug %] counts (slower)</a></p>
+
+[% END %]
+
[% PROCESS admin/versions/footer.html.tmpl
no_edit_other_versions_link = 1
%]