[%# 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. #%] [% show_needinfo = 0 %] [% needinfo_requested = 0 %] [% needinfo_from = "" %] [% needinfo_from_any = 0 %] [% FOREACH type = bug.flag_types %] [% IF type.name == 'needinfo' %] [% show_needinfo = 1 %] [% FOREACH flag = type.flags %] [% IF flag.status == '?' %] [% needinfo_requested = 1 %] [% IF flag.requestee.login %] [% needinfo_from = flag.requestee.login %] [% ELSE %] [% needinfo_from_any = 1 %] [% END %] [% END %] [% END %] [% END %] [% END %] [% IF show_needinfo %] [%# Displays NEEDINFO tag in bug header %] [% IF needinfo_requested %] [% END %]
[% IF needinfo_requested %] [% IF needinfo_from == user.login || needinfo_from_any %] Adding comment will automatically clear needinfo request. [% ELSE %] [% END %] [% END %] [% IF user.in_group('canconfirm') && !is_attachment && !needinfo_requested && bug.status.is_open %] [%+ INCLUDE global/userselect.html.tmpl id => "needinfo_from" name => "needinfo_from" size => 30 value => "" %] [% END %]
[% END %]