1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
[% INCLUDE 'admin/header.html' title=loc('Summary') -%]
[% IF total_bodies == 0 %]
<p class="fms-admin-info">
[% loc('Currently no bodies have been created.') %]
<br>
[% tprintf( loc('You need to <a href="%s">add some bodies</a> (such as councils or departments) before any reports can be sent.'), c.uri_for('bodies')) %]
</p>
[% END %]
[%- BLOCK states -%]
<h2>[% title %]</h2>
[%- FOREACH state IN object.keys.sort %]
[%- '<ul>' IF loop.first %]
<li>[% object.$state %] [% state %]</li>
[%- "\n</ul>" IF loop.last %]
[%- END %]
[% END -%]
<ul>
<li>[% tprintf( loc('<strong>%d</strong> live problems'), total_problems_live ) %];
[% tprintf( loc('from %d different users'), total_problems_users ) %]</li>
<li>[% tprintf( loc('%d live updates'), comments.confirmed || 0 ) %]</li>
<li>[% tprintf( loc('%d confirmed alerts, %d unconfirmed'), alerts.1, alerts.0) %]</li>
<li>[% tprintf( loc('%d questionnaires sent – %d answered (%s%%)'), questionnaires.total, questionnaires.1, questionnaires_pc) %]</li>
<li>[% tprintf( loc('%d council contacts – %d confirmed, %d unconfirmed'), contacts.total, contacts.1, contacts.0) %]</li>
</ul>
[% IF c.cobrand.admin_show_creation_graph -%]
<p>
<a href="[% c.config.BASE_URL %]/fms-live-creation.png" class="admin-offsite-link">[% loc('Graph of problem creation by status over time') %]</a>
</p>
[% 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 %]
<h2>[% loc('Category fix rate for problems > 4 weeks old') %]</h2>
<table>
<tr><th>[% loc('Category') %]</th><th>[% loc('Total') %]</th><th>[% loc('Fixed') %]</th></tr>
[% END %]
<tr><td>[% category.key %]</td><td>[% category.value.total %]</td><td>[% category.value.fixed / category.value.total * 100 | format('%.1f') %]%</td></tr>
[% '</table>' IF loop.last %]
[% END %]
[% INCLUDE 'admin/footer.html' %]
|