summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@redhat.com>2014-06-23 23:15:38 +0200
committerDavid Lawrence <dkl@redhat.com>2014-06-23 23:15:38 +0200
commit4e8e717b83e3effa685f4f777635b0c73cb87d50 (patch)
tree4e8913e735d4c8f1156ae8a81ca67ab7a6c260b6 /extensions
parentf16dc328e0cced6325d84ebe780264ceb9e472b7 (diff)
downloadbugzilla-4e8e717b83e3effa685f4f777635b0c73cb87d50.tar.gz
bugzilla-4e8e717b83e3effa685f4f777635b0c73cb87d50.tar.xz
Bug 943146 - Needinfo dropdown should include mentor
r=glob
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
index de1191520..453f85fe2 100644
--- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
+++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
@@ -99,6 +99,10 @@
identity = '[% bug.qa_contact.realname || bug.qa_contact.login FILTER html FILTER js %]';
} else if (role == 'user') {
identity = '[% user.realname || user.login FILTER html FILTER js %]';
+ [% FOREACH mentor = bug.mentors %]
+ } else if (role == '[% mentor.login FILTER js %]') {
+ identity = '[% mentor.realname || mentor.login FILTER html FILTER js +%] [%+ IF bug.mentors.size > 1 %](mentor)[% END %]';
+ [% END %]
}
YAHOO.util.Dom.get('needinfo_role_identity').innerHTML = identity;
}
@@ -137,6 +141,11 @@
<option value="qa_contact">qa contact</option>
[% END %]
<option value="user">myself</option>
+ [% FOREACH mentor = bug.mentors %]
+ <option [% IF bug.mentors.size > 1 %]title="mentor"[% END %] value="[% mentor.login FILTER html %]">
+ [% bug.mentors.size == 1 ? "mentor" : mentor.login FILTER html %]
+ </option>
+ [% END %]
</select>
<span id="needinfo_from_container">
[% INCLUDE global/userselect.html.tmpl