diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-06-04 17:21:24 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-06-04 17:21:24 +0100 |
commit | ac1b55b82df2407d50158b17f2f742f0cd8b17bd (patch) | |
tree | 05dbabc4da1e955d9988a298f40b733ca2ac7487 | |
parent | e7bfad541345fa3b7d22441f791e16b9e17dfa6d (diff) |
EHA: Actually, move the photos down to fit better.
-rw-r--r-- | templates/web/emptyhomes/index.html | 43 |
1 files 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 @@ </div> [% - 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 %] <div class="grid-50"> <h2 class="bl"><small>[% loc('Recently reported problems') %]</small></h2> - [% IF recent_photos.size %] - <p id="front_photos"> - [% FOREACH p IN recent_photos; - photo = p.get_photo_params; - %] - <a href="/report/[% p.id %]"><img border="0" height="100" - src="[% photo.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a> - [% END %] - </p> - [% END %] - - [% IF probs.size %] - <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> + <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 %] @@ -53,6 +40,18 @@ [% INCLUDE 'index-steps.html', question = c.cobrand.enter_postcode_text %] </div> + + [% IF recent_photos.size %] + <p id="front_photos"> + [% FOREACH p IN recent_photos; + photo = p.get_photo_params; + %] + <a href="/report/[% p.id %]"><img border="0" height="100" + src="[% photo.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a> + [% END %] + </p> + [% END %] + </div> [% INCLUDE 'footer.html' %] |