[% 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 ~%]