diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-10-01 15:56:10 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-10-01 21:00:03 +0100 |
commit | 9a7c85f7614ce8823d7a16ebb174349268826c18 (patch) | |
tree | ce9fee396bd61eea6af0f3200d6678d85bdec2f7 /templates | |
parent | a4d0db790c46ae55edd75bb719e62dee7d0e5a7f (diff) |
[Bromley] Combine _item/_list-entry templates.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/bromley/report/_item.html | 4 | ||||
-rw-r--r-- | templates/web/bromley/reports/_list-entry.html | 29 |
2 files changed, 2 insertions, 31 deletions
diff --git a/templates/web/bromley/report/_item.html b/templates/web/bromley/report/_item.html index cd3fbc18c..75f542b77 100644 --- a/templates/web/bromley/report/_item.html +++ b/templates/web/bromley/report/_item.html @@ -1,5 +1,5 @@ -<li> -<a class="text" href="[% c.uri_for('/report', problem.id ) %]"> +<li class="[% c.cobrand.pin_colour(problem) %]"> +<a class="[% problem.category %] text" href="[% c.uri_for('/report', problem.id ) %]"> [% IF problem.photo; photo = problem.get_photo_params %] diff --git a/templates/web/bromley/reports/_list-entry.html b/templates/web/bromley/reports/_list-entry.html deleted file mode 100644 index 5a4258b2c..000000000 --- a/templates/web/bromley/reports/_list-entry.html +++ /dev/null @@ -1,29 +0,0 @@ -[% include_lastupdate = 1 %] -<li class="[% c.cobrand.pin_colour(problem) %]"> - <a class="[% problem.category %] text" 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_lastupdate %] - [% 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> - - - |