[% global.last_state = '' %] [% FOREACH update IN updates %] [%- IF global.last_state == 'hidden' OR global.last_state == 'unconfirmed' OR update.problem_state == 'hidden' OR update.problem_state == 'unconfirmed' %] [%- IF update.problem_state != '' %] [%- global.last_state = update.problem_state %] [%- END %] [%- NEXT %] [%- END %] [%- IF update.get_extra_metadata('triage_report') == 1 AND ( NOT c.user OR ( NOT c.user.from_body AND NOT c.user.is_superuser ) ) %] [%- NEXT %] [%- END %] [% INCLUDE 'report/update.html' %] [% END %] [% BLOCK meta_line %] [% IF update.whenanswered %] [% IF update.marks_fixed %] [%# A questionnaire update that marked the report fixed %] [% loc("Questionnaire filled in by problem reporter") %]; [% loc('State changed to:') %] [% prettify_state('fixed') %], [% prettify_dt( update.whenanswered ) %] [% ELSE %] [%# A questionnaire update, currently saying report is still open %] [% loc('Still open, via questionnaire') %], [% prettify_dt( update.whenanswered ) %] [% END %] [% RETURN %] [% END %] [% update.meta_line(c.user) %] [% END %]