[% body_name = PROCESS 'reports/_body_name.html' | trim %] [% IF ward_type %] [% name = "$ward.name, $body_name" thing = ward_type %] [% ELSIF ward %] [% name = "$ward.name, $body_name" thing = loc('ward') %] [% ELSE %] [% name = body_name thing = loc('council') %] [% END %] [% ward_text = loc( 'Wards of this council' ) %] [% ward_link_text = loc('Follow a ward link to view only reports within that ward.') %] [% ward_link_instruction = loc('Select multiple wards to view only reports within those wards.') %] [% ward_link_multiple = loc('Select multiple wards?') %] [% ward_link_button = loc('View wards') %] [% IF c.cobrand.moniker.match('lincolnshire') %] [% ward_text = 'View reports by division' %] [% ELSIF c.cobrand.moniker.match('oxfordshire') %] [% ward_text = 'View reports by division' %] [% ward_text = loc( 'View reports by division' ) %] [% ward_link_text = loc('Follow a division link to view only reports within that division.') %] [% ward_link_instruction = loc('Select multiple divisions to view only reports within those divisions.') %] [% ward_link_multiple = loc('Select multiple divisions?') %] [% ward_link_button = loc('View divisions') %] [% ELSIF c.cobrand.is_council %] [% ward_text = loc( 'View reports by ward' ) %] [% END %] [% IF c.user && c.user.has_body_permission_to('planned_reports') %] [% map_sub_links = BLOCK %] [% END %] [% END %] [% PROCESS "report/photo-js.html"; PROCESS "maps/${map.type}.html"; SET bodyclass = 'mappage'; INCLUDE 'header.html', title = tprintf(loc('%s - Summary reports'), name) rss = [ tprintf(loc('Problems within %s, %s', "First %s is the body name, second %s the site name"), name, site_name), rss_url ] %] [% map_html | safe %]
[% IF ward %]

[% ward.name %]

[% body_name %] [% ELSIF wards %]

[% FOREACH w IN wards %][% w.name %][% IF NOT loop.last %], [% END %][% END %]

[% body_name %] [% ELSE %]

[% body_name %]

[% END %] [% IF c.cobrand.moniker == 'hart' %] [% INCLUDE '_hart_hants_note.html' %] [% END %] [% IF NOT body.areas.size %] [% TRY %][% INCLUDE 'reports/_body_gone.html' %][% CATCH file %][% END %] [% ELSE %] [% INCLUDE 'reports/_rss.html' %] [% END %] [% TRY %][% INCLUDE 'reports/cobrand_stats.html' %][% CATCH file %][% END %] [% INCLUDE 'reports/_ward-list.html' %]
[% INCLUDE "reports/_list-filters.html", use_form_wrapper = 1 %]
[% INCLUDE "reports/_bulk-assign.html" %]
[% INCLUDE 'pagination.html', param = 'p' %]
[% INCLUDE 'reports/_problem-list.html' %]
[% INCLUDE 'pagination.html', param = 'p' %]
[% INCLUDE 'footer.html' %]