[%- FOR problem IN problems %] [% problem.id %] [% PROCESS value_or_nbsp value=problem.title %] [% PROCESS value_or_nbsp value=problem.name %]
[% PROCESS value_or_nbsp value=problem.user.email %]
[% PROCESS value_or_nbsp value=problem.user.phone_display %] [% PROCESS value_or_nbsp value=problem.category_display %]
[% assigned_user = problem.shortlisted_user.name OR problem.shortlisted_user.username %] [% IF c.user.has_body_permission_to('assign_report_to_user') && assigned_user %] [%# see report's assigned user %] [% loc('Assigned to') %]: [%- assigned_user -%] [%- END -%] [% prettify_state(problem.state, 1) %]
[% loc('Created') %]: [% PROCESS format_time time=problem.created %]
[% loc('When sent') %]: [% PROCESS format_time time=problem.whensent %] [%- IF problem.is_visible AND problem.created != problem.confirmed %]
[% loc('Confirmed:') %] [% PROCESS format_time time=problem.confirmed %][% END -%] [%- IF problem.is_fixed %]
[% prettify_state('fixed') %]: [% PROCESS format_time time=problem.lastupdate %][% END -%] [%- IF problem.is_closed %]
[% prettify_state('closed') %]: [% PROCESS format_time time=problem.lastupdate %][% END -%] [%- IF problem.is_open %]
[% loc('Last update:') %] [% PROCESS format_time time=problem.lastupdate %][% END -%]
[% IF c.user.has_permission_to('report_edit', problem.bodies_str_ids) %] [% loc('Edit') %] [% END %] [%- END -%]