diff options
Diffstat (limited to 'template/en/default/admin/milestones/list.html.tmpl')
-rw-r--r-- | template/en/default/admin/milestones/list.html.tmpl | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/template/en/default/admin/milestones/list.html.tmpl b/template/en/default/admin/milestones/list.html.tmpl index d36b61a3d..b9311fc1a 100644 --- a/template/en/default/admin/milestones/list.html.tmpl +++ b/template/en/default/admin/milestones/list.html.tmpl @@ -17,13 +17,12 @@ # Rights Reserved. # # Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org> + # Frédéric Buclin <LpSolit@gmail.com> #%] [%# INTERFACE: - # milestones: array of hashes having the following properties: - # - name: string; The name of the milestone. - # - sortkey: number; The sortkey used to order the milestone. - # + # milestones: array of milestone objects + # showbugcounts: if defined, then bug counts should be included in the table # product: string; the name of the product we are editing milestones for #%] @@ -42,6 +41,8 @@ [%- product FILTER url_quote %]&milestone=%%name%%[% END %] [% delete_contentlink = BLOCK %]editmilestones.cgi?action=del&product= [%- product FILTER url_quote %]&milestone=%%name%%[% END %] +[% bug_count_contentlink = BLOCK %]buglist.cgi?target_milestone=%%name%%&product= + [%- product FILTER url_quote %][% END %] [% columns = [ @@ -53,14 +54,28 @@ { name => "sortkey" heading => "Sortkey" - }, - { + } + ] +%] + +[% IF showbugcounts %] + + [% columns.push({ + name => "bug_count" + heading => "$terms.Bugs" + align => "right" + contentlink => bug_count_contentlink + }) + %] + +[% END %] + +[% columns.push({ name => "action" heading => "Action" content => "Delete" contentlink => delete_contentlink - } - ] + }) %] [%# We want to override the usual 'Delete' link for the default @@ -83,6 +98,13 @@ <p> +[% IF ! showbugcounts %] + + <p><a href="editmilestones.cgi?product=[% product FILTER url_quote %]&showbugcounts=1"> + Redisplay table with [% terms.bug %] counts (slower)</a></p> + +[% END %] + [% PROCESS admin/milestones/footer.html.tmpl no_edit_other_milestones_link = 1 %] |