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 +++++++++++---------- .../en/default/hook/global/header-start.html.tmpl | 14 +- 2 files changed, 202 insertions(+), 166 deletions(-) (limited to 'extensions/Needinfo/template/en/default') 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 %] + + diff --git a/extensions/Needinfo/template/en/default/hook/global/header-start.html.tmpl b/extensions/Needinfo/template/en/default/hook/global/header-start.html.tmpl index 7f2095e3d..0cca4b09a 100644 --- a/extensions/Needinfo/template/en/default/hook/global/header-start.html.tmpl +++ b/extensions/Needinfo/template/en/default/hook/global/header-start.html.tmpl @@ -6,7 +6,13 @@ # defined by the Mozilla Public License, v. 2.0. #%] -[% IF template.name == 'attachment/create.html.tmpl' - || template.name == 'attachment/edit.html.tmpl' %] - [% style_urls.push('extensions/Needinfo/web/styles/needinfo.css') %] -[% END %] +[% + IF template.name == 'attachment/create.html.tmpl' + || template.name == 'attachment/edit.html.tmpl' + || template.name == 'bug/show.html.tmpl' + || template.name == 'bug/show-modal.html.tmpl' + || template.name == 'bug/process/results.html.tmpl' + ; + style_urls.push('extensions/Needinfo/web/styles/needinfo.css'); + END; +%] -- cgit v1.2.3-24-g4f1b