From ac1b55b82df2407d50158b17f2f742f0cd8b17bd Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 4 Jun 2013 17:21:24 +0100 Subject: EHA: Actually, move the photos down to fit better. --- templates/web/emptyhomes/index.html | 43 ++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/templates/web/emptyhomes/index.html b/templates/web/emptyhomes/index.html index 003e6d4c2..b8b0ce78a 100644 --- a/templates/web/emptyhomes/index.html +++ b/templates/web/emptyhomes/index.html @@ -16,33 +16,20 @@ [% - recent_photos = c.cobrand.recent_photos('front', 1); + recent_photos = c.cobrand.recent_photos('front', 2); probs = c.cobrand.recent(); %] -[% IF probs.size || recent_photos.size %] +[% IF probs.size %]

[% loc('Recently reported problems') %]

- [% IF recent_photos.size %] -

- [% FOREACH p IN recent_photos; - photo = p.get_photo_params; - %] - [% p.title | html %] - [% END %] -

- [% END %] - - [% IF probs.size %] - +
[% END %] @@ -53,6 +40,18 @@ [% INCLUDE 'index-steps.html', question = c.cobrand.enter_postcode_text %] + + [% IF recent_photos.size %] +

+ [% FOREACH p IN recent_photos; + photo = p.get_photo_params; + %] + [% p.title | html %] + [% END %] +

+ [% END %] + [% INCLUDE 'footer.html' %] -- cgit v1.2.3