From 40dcf522e094f7d9944524dbc1ebafc61b6642c8 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 28 Sep 2005 05:08:11 +0000 Subject: Bug 307604: "Redisplay table with bug counts" should also be available from editmilestones.cgi and editversions.cgi - Patch by Frédéric Buclin r=GavinS a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/admin/versions/list.html.tmpl | 40 ++++++++++++++++------ .../admin/versions/select-product.html.tmpl | 31 +++++++++++------ 2 files changed, 51 insertions(+), 20 deletions(-) (limited to 'template/en/default/admin/versions') 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 + # Frédéric Buclin #%] [%# 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 %]&version=%%name%%[% END %] [% delete_contentlink = BLOCK %]editversions.cgi?action=del&product= [%- product FILTER url_quote %]&version=%%name%%[% END %] +[% bug_count_contentlink = BLOCK %]buglist.cgi?version=%%name%%&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 @@

+[% IF ! showbugcounts %] + +

+ Redisplay table with [% terms.bug %] counts (slower)

+ +[% END %] + [% PROCESS admin/versions/footer.html.tmpl no_edit_other_versions_link = 1 %] diff --git a/template/en/default/admin/versions/select-product.html.tmpl b/template/en/default/admin/versions/select-product.html.tmpl index 621649cd2..cba4bab4e 100644 --- a/template/en/default/admin/versions/select-product.html.tmpl +++ b/template/en/default/admin/versions/select-product.html.tmpl @@ -16,28 +16,22 @@ # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # - # Contributor(s): Gavin Shelley (bugzilla@chimpychompy.org) + # Contributor(s): Gavin Shelley + # Frédéric Buclin # #%] [%# INTERFACE: - # products: array of hashes having the following properties: - # - name: string; The name of the product. - # - description: string; The description of the product. + # products: array of product objects + # showbugcounts: if defined, then bug counts should be included in the table #%] -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - [% PROCESS global/variables.none.tmpl %] [% PROCESS global/header.html.tmpl title = "Edit versions for which product?" %] -[% bug_count_contentlink = BLOCK %]buglist.cgi?version=%%name%%&product= - [%- product FILTER url_quote %][% END %] - [% columns = [ { name => "name" @@ -52,11 +46,28 @@ ] %] +[% IF showbugcounts %] + + [% columns.push({ + name => 'bug_count' + heading => "$terms.Bugs" + align => "right" + contentlink => "buglist.cgi?product=%%name%%" + }) + %] + +[% END %] + [% PROCESS admin/table.html.tmpl columns = columns data = products %] +[% IF !showbugcounts %] +

+ Redisplay table with [% terms.bug %] counts (slower)

+[% END %] +

[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b