aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/reports/body.html
blob: bf5a1ee9af814183f446e5f69ba967cf9331426f (plain)
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
69
70
71
72
[% IF ward %]
    [% name = "$ward.name, $body.name"
       thing = loc('ward')
    %]
[% ELSE %]
    [% name = body.name
       thing = loc('council')
    %]
[% END %]

[% IF c.cobrand.moniker == 'oxfordshire' %]
    [% ward_text = 'View reports by division' %]
[% ELSIF c.cobrand.is_council %]
    [% ward_text = loc( 'View reports by ward' ) %]
[% ELSE %]
    [% ward_text = loc( 'Wards of this council' ) %]
[% 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 %]

</div>
<div id="map_sidebar">
    <div id="side">

<h1 id="reports_heading">
    [% IF ward %]
    [% ward.name %]<span>, </span><a href="[% body_url %]">[% body.name %]</a>
    [% ELSE %]
    [% body.name %]
    [% END %]
</h1>

[% 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' %]

[% IF c.cobrand.moniker == 'fixmystreet' %]
<p class="promo">
    FixMyStreet is now available for local council websites.
    <a href="https://www.fixmystreet.com/council">Find&nbsp;out&nbsp;more</a>.
</p>
[% END %]

<section class="full-width">
[% INCLUDE "reports/_list-filters.html", use_form_wrapper = 1 %]
[% INCLUDE 'pagination.html', param = 'p' %]
[% INCLUDE 'reports/_problem-list.html' %]
[% INCLUDE 'pagination.html', param = 'p' %]
</section>

    </div>
</div>
[% INCLUDE 'footer.html' %]