aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-10-01 15:56:10 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-10-01 21:00:03 +0100
commit9a7c85f7614ce8823d7a16ebb174349268826c18 (patch)
treece9fee396bd61eea6af0f3200d6678d85bdec2f7 /templates
parenta4d0db790c46ae55edd75bb719e62dee7d0e5a7f (diff)
[Bromley] Combine _item/_list-entry templates.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/bromley/report/_item.html4
-rw-r--r--templates/web/bromley/reports/_list-entry.html29
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>
-
-
-