aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/bromley/report/_item.html
blob: 3bd8a868622e0a101646dd08d804548dc4554b0e (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
<li class="item-list__item item-list--reports__item item-list__item--with-pin [% c.cobrand.pin_colour(problem) %]">
<a class="[% problem.category %]" href="[% c.uri_for('/report', problem.id ) %]">
    [% IF problem.photo;
        photo = problem.get_photo_params
    %]
        <img class="img" height="60" width="90" src="[% photo.url_fp %]" alt="">
    [% END %]
        <span>[% problem.title | html %]</span><br />
        <small>[% prettify_dt( problem.confirmed, 1 ) %]
            [%- IF dist %], [% dist %]km[% END %]
            [%- IF include_lastupdate AND problem.confirmed != problem.lastupdate AND problem.whensent != problem.lastupdate %],
                [% tprintf(loc('last updated %s'), prettify_dt( problem.lastupdate, 1 ) ) %]
            [%- END %]
        [% IF include_sentinfo %]
            [% IF problem.bodies_str_ids.size > 1 %] [% loc('(sent to both)') %]
            [% ELSIF problem.bodies_str_ids.size == 0 %] [% loc('(not sent to council)') %]
            [% END %]
        [% END %]
        [% IF NOT no_fixed AND problem.is_fixed %]
            [% loc('(fixed)') %]
        [% ELSIF NOT no_fixed AND problem.is_closed %]
            [% loc('(closed)') %]
        [% END %]</small>
</a>
</li>