summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-31 06:42:12 +0100
committerlpsolit%gmail.com <>2005-10-31 06:42:12 +0100
commitaac2ea969174d3d6d62d89b49e5c002cdc4f6a02 (patch)
tree977484c46d0e4ef3dcfcddadeaa4a008e959891e /template
parent1254fcb8c43defcbce99713f5cd85a104670895e (diff)
downloadbugzilla-aac2ea969174d3d6d62d89b49e5c002cdc4f6a02.tar.gz
bugzilla-aac2ea969174d3d6d62d89b49e5c002cdc4f6a02.tar.xz
Bug 153445: Do not display bug counts by default when listing products in editproducts.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r=GavinS a=justdave
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/products/list.html.tmpl27
1 files changed, 21 insertions, 6 deletions
diff --git a/template/en/default/admin/products/list.html.tmpl b/template/en/default/admin/products/list.html.tmpl
index 17eb61c0d..ee76a3b0a 100644
--- a/template/en/default/admin/products/list.html.tmpl
+++ b/template/en/default/admin/products/list.html.tmpl
@@ -20,6 +20,7 @@
# classification: Bugzilla::Classification object; If classifications
# are enabled, then this is
# the currently selected classification
+ # showbugcounts: boolean; true if bug counts should be included in the table
#%]
[% PROCESS global/variables.none.tmpl %]
@@ -78,19 +79,26 @@
name => "votestoconfirm"
heading => "Votes To Confirm"
align => 'right'
- },
- {
+ } ]
+%]
+
+[% IF showbugcounts %]
+
+ [% columns.push({
name => "bug_count"
heading => "$terms.Bug Count"
align => 'right'
contentlink => bug_count_contentlink
- },
- {
+ })
+ %]
+
+[% END %]
+
+[% columns.push({
heading => "Action"
content => "Delete"
contentlink => delete_contentlink
- },
- ]
+ })
%]
[% overrides.disallow_new = [ {
@@ -114,6 +122,13 @@
<p>
+[% IF !showbugcounts %]
+
+ <p><a href="editproducts.cgi?showbugcounts=1[% classification_url_part %]">
+ Redisplay table with [% terms.bug %] counts (slower)</a></p>
+
+[% END %]
+
[% PROCESS admin/products/footer.html.tmpl
no_edit_other_products_link = 1
%]