From d447aed0cb1672f6c7e99bf98199278dea23702f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 21 Apr 2016 12:50:14 +0800 Subject: Bug 1239838 - Don't see a way to redirect a needinfo request (in Experimental UI) --- .../template/en/default/bug/needinfo.html.tmpl | 354 +++++++++++---------- 1 file changed, 192 insertions(+), 162 deletions(-) (limited to 'extensions/Needinfo/template/en/default/bug') diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl index 7e32509bf..f350fb7f5 100644 --- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl +++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl @@ -35,173 +35,203 @@ END; END; END; + + RETURN UNLESS needinfo_flagtype; %] -[% IF needinfo_flagtype %] -
- [% IF needinfo_flags.size > 0 %] - [%# Displays NEEDINFO tag in bug header %] - - [% END %] - + + +
+
+ [% FOREACH flag = needinfo_flags %] + + [% IF !flag.requestee || flag.requestee.id == user.id%] + [%# needinfo from anyone or the current user %] - - [% END %] -
- - + - - - - [% INCLUDE global/userselect.html.tmpl - id => "needinfo_from" - name => "needinfo_from" - value => "" - size => 30 - multiple => 5 - onchange => "needinfo_other_changed()" - field_title => "Enter one or more comma separated users to request more information from" - %] - - +
-
-[% END %] + [% ELSIF user.in_group("canconfirm") || flag.setter_id == user.id %] + [%# needinfo targetted at someone else, but the user can clear %] + + + + + + + [% ELSE %] + [%# current user does not have permissions to clear needinfo %] +   + + Needinfo requested from [% flag.requestee.login FILTER html %]. + + [% END %] + + [% END %] + [% IF needinfo_flags.size == 0 || needinfo_flagtype.is_multiplicable %] + + + + + + + + + + [% INCLUDE global/userselect.html.tmpl + id => "needinfo_from" + name => "needinfo_from" + value => "" + size => 30 + multiple => 5 + onchange => "needinfo_from_changed()" + field_title => "Enter one or more comma separated users to request more information from" + %] + + + + + [% END %] + + -- cgit v1.2.3-24-g4f1b