[% IF NOT report_blocks_included ~%] [% PROCESS 'admin/report_blocks.html' ~%] [% END ~%] [% IF c.user.has_permission_to('planned_reports', problem.bodies_str_ids) ~%] [% 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 %] [% END %] [% END %]
  • [% IF problem.photo %] [% END %]

    [% problem.title | html %]

    [% IF c.user.has_permission_to('report_inspect', problem.bodies_str_ids) %]
    [% problem.detail | html %]
    [% END %] [% IF NOT no_fixed AND problem.is_fixed %] [% loc('Fixed') %] [% ELSIF NOT no_fixed AND problem.is_closed %] [% loc('Closed') %] [% ELSIF problem.response_priority AND (c.user.has_permission_to('report_edit_priority', problem.bodies_str_ids) OR c.user.has_permission_to('report_inspect', problem.bodies_str_ids)) %] [% problem.response_priority.name %] [% END %] [%- IF c.cobrand.moniker != 'fixamingata' %] [%# Default: %] [%- IF problem.days_ago > 0 AND problem.days_ago <= c.cobrand.display_days_ago_threshold %] [% tprintf( nget( loc('Reported %d day ago'), loc('Reported %d days ago'), problem.days_ago), problem.days_ago ) %] [%- ELSE %] [% prettify_dt( problem.confirmed, 1 ) %] [%- END %] [%- ELSE %] [%# Swedish cobrand fixamingata: %] [%- prettify_dt( problem.confirmed) %] [%- END %] [%- IF dist %], [% dist %]km[% END %] [%- IF problem.confirmed != problem.lastupdate AND problem.whensent != problem.lastupdate %], [%- IF problem.days_ago('lastupdate') > 0 AND problem.days_ago('lastupdate') <= c.cobrand.display_days_ago_threshold %] [% tprintf( nget( loc('last updated %d day ago'), loc('last updated %d days ago'), problem.days_ago('lastupdate') ), problem.days_ago('lastupdate') ) %] [%- ELSE %] [% tprintf(loc('last updated %s'), prettify_dt( problem.lastupdate, 1 ) ) %] [%- END %] [%- END %] [% IF include_sentinfo %] [% IF c.cobrand.is_council && !c.cobrand.owns_problem( problem ) %] (sent to [% problem.body %]) [% ELSIF problem.bodies_str_ids.size > 1 %] [% loc('(sent to both)') %] [% ELSIF problem.bodies_str_ids.size == 0 %] [% loc('(not sent to council)') %] [% END %] [% END %] [% IF c.user.has_permission_to('report_inspect', problem.bodies_str_ids) %] [% END %]
    [% IF item_action AND page != 'around' %]
    [% item_action %]
    [% ELSIF item_action ~%] [% item_action.replace('("shortlist-[^"]*)', '$1-' _ problem.id) %] [% END ~%]