[% IF NOT report_blocks_included ~%] [% PROCESS 'admin/report_blocks.html' ~%] [% END ~%] [% SET relevant_staff = 1; SET category_safe = mark_safe(problem.category); SET is_user_category = user_categories.$category_safe; IF (assigned_users_only.$category_safe OR assigned_categories_only) AND NOT is_user_category; SET relevant_staff = 0; END; ~%] [% IF relevant_staff AND (c.user.has_permission_to('planned_reports', problem.bodies_str_ids) OR c.user.is_planned_report(problem)) ~%] [% item_extra_class = "item-list__item--indented" ~%] [% item_action = BLOCK ~%] [%~ END %] [% END %] [% IF shortlist %] [% item_extra_class = "item-list__item--indented item-list__item--act-and-sort" %] [% item_action = BLOCK %] [% item_action | safe %] [% END %] [% END %] [%~ TRY ~%] [% PROCESS 'report/_item_extra_class.html' %] [%~ CATCH file ~%] [%~ END ~%]
  • [% IF relevant_staff AND (c.user.has_permission_to('assign_report_to_user', problem.bodies_str_ids)) %] [% UNLESS page == 'my' OR page == 'around' OR page == '' %] [% END %] [% END %] [% TRY ~%] [% PROCESS 'report/_item_photo_title.html' ~%] [% CATCH file ~%] [% IF problem.photo %] [% END %] [% TRY %] [% PROCESS 'report/_item_heading.html' %] [% CATCH file %]

    [% problem.title | html %]

    [% END %] [% END ~%] [% IF relevant_staff AND c.user.has_permission_to('report_inspect', problem.bodies_str_ids) %]
    [% problem.detail | html %]
    [% END %] [% PROCESS 'report/_item_small.html' %] [% IF relevant_staff AND c.user.has_permission_to('report_inspect', problem.bodies_str_ids) %] [% END %]
    [% IF item_action ~%] [% IF page == 'report' ~%] [%# We don't want to output shortlist on report page (in duplicate list) %] [% ELSIF page == 'around' ~%] [%# The around page list is already contained within the new report form %] [% item_action.replace('("shortlist-[^"]*)', '$1-' _ problem.id) | safe %] [% ELSE ~%]
    [% item_action | safe %]
    [% END ~%] [% END %]