[% INCLUDE 'admin/header.html' title=loc('Summary') -%] [% IF total_bodies == 0 %]

[% loc('Currently no bodies have been created.') %]
[% tprintf( loc('You need to add some bodies (such as councils or departments) before any reports can be sent.'), c.uri_for('bodies')) %]

[% END %] [%- BLOCK states -%]

[% title %]

[%- FOREACH state IN object.keys.sort %] [%- '" IF loop.last %] [%- END %] [% END -%] [% IF c.cobrand.admin_show_creation_graph -%]

[% loc('Graph of problem creation by status over time') %]

[% END -%] [% PROCESS states title=loc('Problem breakdown by state') object=problems %] [% PROCESS states title=loc('Update breakdown by state') object=comments %] [% FOREACH category IN categories %] [% IF loop.first %]

[% loc('Category fix rate for problems > 4 weeks old') %]

[% END %] [% '
[% loc('Category') %][% loc('Total') %][% loc('Fixed') %]
[% category.key %][% category.value.total %][% category.value.fixed / category.value.total * 100 | format('%.1f') %]%
' IF loop.last %] [% END %] [% INCLUDE 'admin/footer.html' %]