diff options
Diffstat (limited to 'template/en/default/admin/milestones/select-product.html.tmpl')
-rw-r--r-- | template/en/default/admin/milestones/select-product.html.tmpl | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/template/en/default/admin/milestones/select-product.html.tmpl b/template/en/default/admin/milestones/select-product.html.tmpl index b2510ded9..508af6881 100644 --- a/template/en/default/admin/milestones/select-product.html.tmpl +++ b/template/en/default/admin/milestones/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 <bugzilla@chimpychompy.org> + # Frédéric Buclin <LpSolit@gmail.com> # #%] [%# 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 milestones for which product?" %] -[% bug_count_contentlink = BLOCK %]buglist.cgi?target_milestone=%%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 %] + <p><a href="editmilestones.cgi?showbugcounts=1"> + Redisplay table with [% terms.bug %] counts (slower)</a></p> +[% END %] + <p> [% PROCESS global/footer.html.tmpl %] |