From 73803105b5c610624511bd8ccf6dac880737bd01 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 27 May 2015 09:25:18 -0400 Subject: Edit page: show the duplicates helper when assigned to wranglers 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 --- template/en/default/bug/edit.html.tmpl | 38 +++++++++++++++++++++++++++ template/en/default/bug/show-header.html.tmpl | 5 ++++ 2 files changed, 43 insertions(+) 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 @@ + [% 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. %] + + + + + +
Possible
Duplicates:
+
+ +

+ [% END %] + [%# For logged-out users %] [% ELSE %] 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 – " %] -- cgit v1.2.3-65-gdbad