aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/alert/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/alert/index.html')
-rw-r--r--templates/web/base/alert/index.html6
1 files changed, 2 insertions, 4 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 %]