summaryrefslogtreecommitdiffstats
path: root/extensions/TrackingFlags/template/en/default
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-09-03 23:57:42 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-09-03 23:57:42 +0200
commit37aef45426f4b831bbced64783568f8104b42dcb (patch)
tree8d69b3e7c60935de30004c6a0fa7e126721a1875 /extensions/TrackingFlags/template/en/default
parentf988b727cc57bbc8fa9095476b1a27e5f9f9cb17 (diff)
downloadbugzilla-37aef45426f4b831bbced64783568f8104b42dcb.tar.gz
bugzilla-37aef45426f4b831bbced64783568f8104b42dcb.tar.xz
Bug 912232 - Show tracking flag bug counts in tracking flag list as well as on the edit page
Diffstat (limited to 'extensions/TrackingFlags/template/en/default')
-rw-r--r--extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl7
-rw-r--r--extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_list.html.tmpl14
2 files changed, 20 insertions, 1 deletions
diff --git a/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl b/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl
index 0c4a443f9..97a9e5a02 100644
--- a/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl
+++ b/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl
@@ -102,6 +102,13 @@ var selected_components = [
<td><input type="checkbox" name="flag_active" id="flag_active" value="1" [% "checked" IF flag.is_active %]></td>
</tr>
+[% IF mode == 'edit' %]
+ <tr>
+ <th>[% terms.Bug %] Count</th>
+ <td>[% flag.bug_count FILTER html %]</td>
+ </tr>
+[% END %]
+
</table>
[%# values %]
diff --git a/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_list.html.tmpl b/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_list.html.tmpl
index e310bcee5..5ea68dd98 100644
--- a/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_list.html.tmpl
+++ b/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_list.html.tmpl
@@ -20,6 +20,9 @@
<th>Type</th>
<th>Sort Key</th>
<th>Active</th>
+ [% IF show_bug_counts %]
+ <th>[% terms.Bugs %]</th>
+ [% END %]
<th>&nbsp;</th>
</tr>
@@ -44,8 +47,13 @@
<td>
[% flag.is_active ? "Yes" : "No" %]
</td>
+ [% IF show_bug_counts %]
+ <td>
+ [% flag.bug_count FILTER html %]
+ </td>
+ [% END %]
<td>
- <a href="page.cgi?id=tracking_flags_admin_edit.html&amp;mode=copy&amp;copy_from=[% flag.flag_id FILTER uri %]">Copy</a>
+ <a href="page.cgi?id=tracking_flags_admin_edit.html&amp;mode=copy&amp;copy_from=[% flag.flag_id FILTER uri %]">Copy</a>
</td>
</tr>
[% END %]
@@ -54,6 +62,10 @@
<div id="new_flag">
<a href="page.cgi?id=tracking_flags_admin_edit.html">Add Flag</a> |
+ [% IF !show_bug_counts %]
+ <a href="page.cgi?id=tracking_flags_admin_list.html&amp;show_bug_counts=1">
+ Show [% terms.bug %] counts (slower)</a> |
+ [% END %]
<input type="checkbox" onclick="filter_flag_list(this.checked)" id="filter">
<label for="filter">Show disabled flags</label>
</div>