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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
[% INCLUDE 'admin/header.html' title=loc('Summary') -%]
[% PROCESS 'admin/report_blocks.html' %]
<div class="fms-admin-info fms-admin-floated">
This is the administration interface for [% site_name %]. If you
need any help or guidance, there is <a href="http://fixmystreet.org/">plenty of
online documentation</a>. The FixMyStreet Platform is
<a href="https://github.com/mysociety/fixmystreet">actively supported</a> by
its developers, and has a community of people using or working on the code.
Please <a href="http://fixmystreet.org/community/">sign up to the mailing list
or get in touch</a> to let us know about your use of the FixMyStreet Platform,
and to receive notices of updates.
</div>
[% 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 -%]
[%- FOREACH state IN list %]
[%- '<ul>' IF loop.first %]
<li>[% object.$state %] [% state_pretty.$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 -%]
<h2>[% loc('Problem breakdown by state') %]</h2>
[% FOREACH group IN state_groups %]
[%- '<ul>' IF loop.first %]
<li><strong>[% group.0 %]</strong>
[% PROCESS states object=problems list=group.1 %]
</li>
[%- "\n</ul>" IF loop.last %]
[%- END %]
<h2>[% loc('Update breakdown by state') %]</h2>
[% PROCESS states object=comments list=comments.keys.sort %]
[% 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' %]
|