[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [% needinfo_flagtype = ""; needinfo_flags = []; FOREACH type = bug.flag_types; IF type.name == 'needinfo'; needinfo_flagtype = type; FOREACH flag = type.flags; IF flag.status == '?'; needinfo_flags.push(flag); END; END; LAST IF needinfo_flagtype; END; END; available_mentors = bug.mentors( exclude_needinfo_blocked => 1 ); BLOCK needinfo_comment_div; match = needinfo_flags.last.creation_date.match('^(\d{4})\.(\d{2})\.(\d{2})(.+)$'); date = "$match.0-$match.1-$match.2$match.3"; FOREACH comment IN bug.comments; NEXT IF comment.is_private AND NOT (user.is_insider || user.id == comment.author.id); IF comment.creation_ts == date; GET "c$comment.count"; LAST; END; END; END; RETURN UNLESS needinfo_flagtype; %]
[% FOREACH flag = needinfo_flags %] [% IF !flag.requestee || flag.requestee.id == user.id%] [%# needinfo from anyone or the current user %] [% 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 %] [% END %] [% END %] [% IF needinfo_flags.size == 0 || needinfo_flagtype.is_multiplicable %] [% END %]
  Needinfo requested from [% flag.requestee.login FILTER html %].
[% INCLUDE global/userselect.html.tmpl id => "needinfo_from" name => "needinfo_from" value => "" size => 30 multiple => 5 classes => ["needinfo_from_changed"] field_title => "Enter one or more comma separated users to request more information from" %]