[%# 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 = [] %] [% can_create_needinfo = 0 %] [% 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 %] [% IF user.in_group('canconfirm') %] [% IF bug.status.is_open %] [% can_create_needinfo = 1 %] [% ELSE %] [% FOREACH field = Bugzilla.active_custom_fields(product=>bug.product_obj, component=>bug.component_obj, type=>2) %] [% IF field.description.match('^status-firefox') && bug.${field.name} == 'affected' %] [% can_create_needinfo = 1 %] [% LAST %] [% END %] [% END %] [% END %] [% END %] [% IF needinfo_flagtype %]
[% IF needinfo_flags.size > 0 %] [%# Displays NEEDINFO tag in bug header %] [% FOREACH flag = needinfo_flags %] [% IF !flag.requestee || flag.requestee.id == user.id %] Adding a comment will automatically clear needinfo the request for [% IF !flag.requestee %]anyone[% ELSE %][% flag.requestee.login FILTER html %][% END %]. [% ELSE %] [% END %]
[% END %] [% END %] [% IF can_create_needinfo && (needinfo_flags.size == 0 || needinfo_flagtype.is_multiplicable) %] [%+ INCLUDE global/userselect.html.tmpl id => "needinfo_from" name => "needinfo_from" size => 30 value => "" %]
[% END %]
[% END %]