From 4e8e717b83e3effa685f4f777635b0c73cb87d50 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 23 Jun 2014 21:15:38 +0000 Subject: Bug 943146 - Needinfo dropdown should include mentor r=glob --- extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'extensions/Needinfo/template') 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 @@ [% END %] + [% FOREACH mentor = bug.mentors %] + + [% END %] [% INCLUDE global/userselect.html.tmpl -- cgit v1.2.3-24-g4f1b