summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/pages
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-10-27 12:42:51 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-10-27 12:42:51 +0200
commitad6aa9fa0b82043ed4f2ff25081cef22434d9a0d (patch)
tree9ee01b949847b13b30fdb633098ab0ace3ea56a4 /extensions/BMO/template/en/default/pages
parentf2fb476fa7ea46496f195f56034de5a59c61aa27 (diff)
downloadbugzilla-ad6aa9fa0b82043ed4f2ff25081cef22434d9a0d.tar.gz
bugzilla-ad6aa9fa0b82043ed4f2ff25081cef22434d9a0d.tar.xz
Bug 1309965 - Report: List of Triage Owners which can be sorted and filtered on product and component
Diffstat (limited to 'extensions/BMO/template/en/default/pages')
-rw-r--r--extensions/BMO/template/en/default/pages/triage_owners.html.tmpl136
1 files changed, 136 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/pages/triage_owners.html.tmpl b/extensions/BMO/template/en/default/pages/triage_owners.html.tmpl
new file mode 100644
index 000000000..3663c2925
--- /dev/null
+++ b/extensions/BMO/template/en/default/pages/triage_owners.html.tmpl
@@ -0,0 +1,136 @@
+[%# The contents of this file are subject to the Mozilla Public
+ # License Version 1.1 (the "License"); you may not use this file
+ # except in compliance with the License. You may obtain a copy of
+ # the License at http://www.mozilla.org/MPL/
+ #
+ # Software distributed under the License is distributed on an "AS
+ # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ # implied. See the License for the specific language governing
+ # rights and limitations under the License.
+ #
+ # The Original Code is the BMO Extension
+ #
+ # The Initial Developer of the Original Code is the Mozilla Foundation
+ # Portions created by the Initial Developers are Copyright (C) 2011 the
+ # Initial Developer. All Rights Reserved.
+ #
+ # Contributor(s):
+ # Byron Jones <bjones@mozilla.com>
+ #%]
+
+[% PROCESS global/variables.none.tmpl %]
+
+[% INCLUDE global/header.html.tmpl
+ title = "Triage Owners"
+ javascript_urls = [ "js/util.js", "js/field.js", "js/productform.js",
+ "extensions/BMO/web/js/triage_owners.js" ]
+ style_urls = [ "skins/standard/buglist.css",
+ "extensions/BMO/web/styles/triage_reports.css" ]
+ generate_api_token = 1
+%]
+
+<noscript>
+<h2>Javascript is required to use this report.</h2>
+</noscript>
+
+[% PROCESS "global/field-descs.none.tmpl" %]
+
+<form id="triageOwners" name="triageOwners" action="page.cgi" method="GET">
+ <input type="hidden" name="id" value="triage_owners.html">
+ <input type="hidden" name="json_data" id="json_data" data-json_data="[% json_data FILTER html %]">
+
+ <h3>Show Triage Owners</h3>
+
+ <table id="triage_owners_form">
+ <tr>
+ <th>Product:</th>
+ <td>
+ <select name="product" id="product">
+ <option value="">__Any__</option>
+ [% FOREACH p = user.get_selectable_products %]
+ <option value="[% p.name FILTER html %]"
+ [% " selected" IF product == p.name %]>
+ [% p.name FILTER html %]
+ </option>
+ [% END %]
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <th>Component:</th>
+ <td>
+ <select name="component" id="component" multiple size="5"></select>
+ </td>
+ </tr>
+ <tr>
+ <th>Owner:</th>
+ <td>
+ [% INCLUDE global/userselect.html.tmpl
+ id = "owner"
+ name = "owner"
+ value = owner
+ size = 40
+ classes = ["bz_userfield"]
+ multiple = 5
+ %]
+ </td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td>
+ <input type="submit" value="Generate Report">
+ </td>
+ </tr>
+ </table>
+</form>
+
+[% IF NOT product %]
+ <p>Displaying components from default product list.</p>
+[% END %]
+
+[% IF results.size > 0 %]
+ <p>
+ <small>Each triage owner links to a buglist of all open [% terms.bugs %], since 2016-06-01, without a pending needinfo, where the priority is '--'.</small>
+ </p>
+ [% current_product = "" %]
+ <table border="0" cellspacing="0" id="report" width="100%">
+ </tr>
+ [% FOREACH r = results %]
+ [% count = loop.count() %]
+ [% IF current_product != r.product %]
+ [% current_product = r.product %]
+ <tr class="product_header">
+ <th colspan="3">[% r.product FILTER html %]</th>
+ </tr>
+ [% END %]
+ <tr class="bz_bugitem [% count % 2 == 1 ? "bz_row_odd" : "bz_row_even" %]">
+ <td>
+ [% r.component FILTER html %]
+ </td>
+ <td>
+ [% IF r.owner.id %]
+ [% INCLUDE global/user.html.tmpl who = r.owner %]
+ [% ELSE %]
+ <em>None</em>
+ [% END %]
+ </td>
+ <td>
+ [% IF r.buglist_url %]
+ <a href="[% urlbase FILTER none %]buglist.cgi?product=[% r.product FILTER uri %]&component=[% r.component FILTER uri %]&[% r.buglist_url FILTER none %]">
+ [% r.bug_count FILTER html +%] [%+ terms.bugs %] found.
+ </a>
+ [% ELSE %]
+ None
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
+ </table>
+ <p>
+ Found [% results.size %] component[% 's' IF results.size != 1 %]:
+ </p>
+[% ELSE %]
+ <p>No components found.</p>
+[% END %]
+
+[% INCLUDE global/footer.html.tmpl %]