aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/emptyhomes/index.html
blob: 1d17c3423bcf530f14816dd9033f3e7dfe939876 (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
[% INCLUDE 'header.html', title = '' %]

<div class="grid-50">
    <!--
    <h1 class="bl">
        <small>[% loc('Report, view, or discuss local problems') %]</small>
    </h1>

    [% IF error %]
        <p class="error">[% error %]</p>
    [% END %]

    [% PROCESS 'around/postcode_form.html' %]
    -->

    <div class="grid-50">
        [% INCLUDE 'front/stats.html' %]
    </div>

[% 
    recent_photos = c.cobrand.recent_photos('front', 2);
    probs         = c.cobrand.recent();
%]
[% IF probs.size %]
    <div class="grid-50">
        <h2 class="bl"><small>[% loc('Recently reported problems') %]</small></h2>
        <ul id="nearby_lists">
        [% FOREACH p IN probs %]
            <li>
                <a href="/report/[% p.id %]">[% p.title | html %]</a>
                <small>[% prettify_dt( p.confirmed, 1 ) %]</small>
            </li>
        [% END %]
        </ul>
    </div>
[% END %]

</div>

<div class="grid-50">
    <div id="eha_steps">
    [% INCLUDE 'index-steps.html',
        question = c.cobrand.enter_postcode_text %]
    </div>

    [% IF recent_photos.size %]
        <p id="front_photos">
        [% FOREACH p IN recent_photos %]
            <a href="/report/[% p.id %]"><img border="0" height="100"
                src="[% p.photos.first.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a>
        [% END %]
        </p>
    [% END %]

</div>

[% INCLUDE 'footer.html' %]