diff options
Diffstat (limited to 'template/en/default/admin/components')
-rw-r--r-- | template/en/default/admin/components/list.html.tmpl | 8 | ||||
-rw-r--r-- | template/en/default/admin/components/select-product.html.tmpl | 32 |
2 files changed, 13 insertions, 27 deletions
diff --git a/template/en/default/admin/components/list.html.tmpl b/template/en/default/admin/components/list.html.tmpl index 71444936d..0b4998679 100644 --- a/template/en/default/admin/components/list.html.tmpl +++ b/template/en/default/admin/components/list.html.tmpl @@ -17,6 +17,7 @@ # Rights Reserved. # # Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org> + # Frédéric Buclin <LpSolit@gmail.com> #%] [%# INTERFACE: @@ -25,9 +26,6 @@ # product: string; the name of the product we are editing components for #%] -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - [% PROCESS global/variables.none.tmpl %] [% title = BLOCK %]Select component of product @@ -120,8 +118,8 @@ [% IF ! showbugcounts %] -<p><a href="editcomponents.cgi?showbugcounts=1&[% cgi.query_string %]"> - Redisplay table with [% terms.bug %] counts (slower)</a></p> + <p><a href="editcomponents.cgi?product=[% product FILTER url_quote %]&showbugcounts=1"> + Redisplay table with [% terms.bug %] counts (slower)</a></p> [% END %] diff --git a/template/en/default/admin/components/select-product.html.tmpl b/template/en/default/admin/components/select-product.html.tmpl index 7e6cb8be5..ea9342dcd 100644 --- a/template/en/default/admin/components/select-product.html.tmpl +++ b/template/en/default/admin/components/select-product.html.tmpl @@ -16,32 +16,22 @@ # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # - # Contributor(s): Gavin Shelley (bugzilla@chimpychompy.org) + # Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org> + # Frédéric Buclin <LpSolit@gmail.com> # #%] [%# INTERFACE: - # products: array of hashes having the properties: - # - name: string; The name of the product. - # - description: string; The description of the product. - # - bug_count: number; The number of bugs for the product (if - # showbugcounts defined). - # + # 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 components for which product?" %] -[% bug_count_contentlink = BLOCK %]buglist.cgi?component=%%name%%&product= - [%- product FILTER url_quote %][% END %] - [% columns = [ { name => "name" @@ -58,26 +48,24 @@ [% IF showbugcounts %] -[% columns.push({ + [% columns.push({ name => 'bug_count' heading => "$terms.Bugs" align => "right" - contentlink => bug_count_contentlink - }) %] + contentlink => "buglist.cgi?product=%%name%%" + }) + %] [% END %] [% PROCESS admin/table.html.tmpl columns = columns data = products - footer = footer_row %] -[% IF ! showbugcounts %] - -<p><a href="editcomponents.cgi?showbugcounts=1&[% cgi.query_string %]"> - Redisplay table with [% terms.bug %] counts (slower)</a></p> - +[% IF !showbugcounts %] + <p><a href="editcomponents.cgi?showbugcounts=1"> + Redisplay table with [% terms.bug %] counts (slower)</a></p> [% END %] <p> |