diff options
Diffstat (limited to 'templates/web/emptyhomes/index.html')
-rw-r--r-- | templates/web/emptyhomes/index.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/templates/web/emptyhomes/index.html b/templates/web/emptyhomes/index.html index ca70d1d9c..1d17c3423 100644 --- a/templates/web/emptyhomes/index.html +++ b/templates/web/emptyhomes/index.html @@ -45,11 +45,9 @@ [% IF recent_photos.size %] <p id="front_photos"> - [% FOREACH p IN recent_photos; - photo = p.get_photo_params; - %] + [% FOREACH p IN recent_photos %] <a href="/report/[% p.id %]"><img border="0" height="100" - src="[% photo.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a> + src="[% p.photos.first.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a> [% END %] </p> [% END %] |