diff options
Diffstat (limited to 'templates/web/base/alert')
-rw-r--r-- | templates/web/base/alert/index.html | 6 | ||||
-rw-r--r-- | templates/web/base/alert/list.html | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/templates/web/base/alert/index.html b/templates/web/base/alert/index.html index 7057c83a3..4965a1103 100644 --- a/templates/web/base/alert/index.html +++ b/templates/web/base/alert/index.html @@ -39,11 +39,9 @@ within a certain distance of a particular location.', "%s is the site name"), si [% IF photos.size %] <h2>[% loc('Some photos of recent reports') %]</h2> <div class="alerts__nearby-activity__photos"> - [% FOREACH p IN photos; - photo = p.get_photo_params; - %] + [% FOREACH p IN photos %] <a href="/report/[% p.id %]"> - <img border="0" height="100" src="[% photo.url_tn %]" + <img border="0" height="100" src="[% p.photos.first.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"> </a> [% END %] diff --git a/templates/web/base/alert/list.html b/templates/web/base/alert/list.html index 289eb40af..385cd7d32 100644 --- a/templates/web/base/alert/list.html +++ b/templates/web/base/alert/list.html @@ -22,11 +22,9 @@ <div class="alerts__nearby-activity"> <h2>[% loc('Photos of recent nearby reports') %]</h2> <div class="alerts__nearby-activity__photos"> - [% FOREACH p IN photos; - photo = p.get_photo_params; - %] + [% FOREACH p IN photos %] <a href="/report/[% p.id %]"> - <img border="0" height="100" src="[% photo.url_tn %]" + <img border="0" height="100" src="[% p.photos.first.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"> </a> [% END %] |