[% moderating = c.user && c.user.has_permission_to('moderate', problem.bodies_str) %] [% IF moderating %] [%# TODO: extract stylesheet! %] [% END %]
[% IF moderating %] [% original = problem.moderation_original_data %]

[% IF problem.photo or original.photo %]
[% END %]
[% END %]

[% problem.title | html %]

[% IF moderating %]
[% IF problem.title != original.title %] [% END %]

[% END %]

[% problem.meta_line(c) | html %] [%- IF !problem.used_map AND c.cobrand.moniker != 'emptyhomes' %]; [% loc('there is no pin shown as the user did not use the map') %][% END %] [% IF problem.bodies_str %] [% INCLUDE 'report/_council_sent_info.html' %] [% ELSE %]
[% loc('Not reported to council') %] [% END %] [% mlog = problem.latest_moderation_log_entry(); IF mlog %]
Moderated by [% mlog.user.from_body.name %] at [% prettify_dt(mlog.whenedited) %] [% END %]

[% INCLUDE 'report/_support.html' %] [% INCLUDE 'report/photo.html' object=problem %]
[% add_links( problem.detail ) | html_para %]
[% IF moderating %]
[% IF problem.detail != original.detail %] [% END %]
[% END %]