diff options
-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' %] |