diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-05-27 09:25:18 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-02-25 05:25:34 +0900 |
commit | 73803105b5c610624511bd8ccf6dac880737bd01 (patch) | |
tree | f890f5a9c842d7027eb8f9da1dc4186071035ace | |
parent | quicksearch: support #1234 bugs (diff) | |
download | bugzilla-73803105b5c610624511bd8ccf6dac880737bd01.tar.gz bugzilla-73803105b5c610624511bd8ccf6dac880737bd01.tar.bz2 bugzilla-73803105b5c610624511bd8ccf6dac880737bd01.zip |
Edit page: show the duplicates helper when assigned to wranglerssandbox/vapier/master
When the bug is assigned to the wranglers, show the possible duplicates
table to help with triaging.
X-Gentoo-Bug: 373405
X-Gentoo-Bug-URL: https://bugs.gentoo.org/373405
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 38 | ||||
-rw-r--r-- | template/en/default/bug/show-header.html.tmpl | 5 |
2 files changed, 43 insertions, 0 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 5f6fd60b4..29387b301 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -1178,6 +1178,44 @@ </table> </td></tr></table> + [% IF feature_enabled('jsonrpc') AND bug.assigned_to.login == 'bug-wranglers@gentoo.org' %] + [%# This seciton mostly left unindented to make updates from create.html.tmpl easier. %] + <table> + <tr id="possible_duplicates_container"> + <th>Possible<br>Duplicates:</th> + <td colspan="3"> + <div id="possible_duplicates"></div> + <script type="text/javascript"> + var dt_columns = [ + { key: "id", label: "[% field_descs.bug_id FILTER js %]", + formatter: YAHOO.bugzilla.dupTable.formatBugLink }, + { key: "summary", + label: "[% field_descs.short_desc FILTER js %]", + formatter: "text" }, + { key: "status", + label: "[% field_descs.bug_status FILTER js %]", + formatter: YAHOO.bugzilla.dupTable.formatStatus }, + { key: "update_token", label: '', + formatter: YAHOO.bugzilla.dupTable.formatCcButton } + ]; + YAHOO.bugzilla.dupTable.addCcMessage = "Add Me to the CC List"; + YAHOO.bugzilla.dupTable.init({ + container: 'possible_duplicates', + columns: dt_columns, + product_name: '[% product.name FILTER js %]', + summary_field: 'short_desc', + options: { + MSG_LOADING: 'Searching for possible duplicates...', + MSG_EMPTY: 'No possible duplicates found.', + SUMMARY: 'Possible Duplicates' + } + }); + </script> + </td> + </tr> + </table><br> + [% END %] + [%# For logged-out users %] [% ELSE %] <table> diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl index 9ce59130c..a5479c7af 100644 --- a/template/en/default/bug/show-header.html.tmpl +++ b/template/en/default/bug/show-header.html.tmpl @@ -31,6 +31,11 @@ [% javascript_urls.push('js/comment-tagging.js') IF user.id && Param('comment_taggers_group') %] [% IF bug.defined %] + [%# These deps added for duplicate handling in edit.html.templ %] + [% IF feature_enabled('jsonrpc') AND bug.assigned_to.login == 'bug-wranglers@gentoo.org' %] + [% yui.push('datatable') %] + [% javascript_urls.push('js/bug.js') %] + [% END %] [% header = "$terms.Bug $bug.bug_id" %] [% header_addl_info = "Last modified: $filtered_timestamp node ${constants.GENTOO_NODE}" %] [% unfiltered_title = "$bug.bug_id – " %] |