diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-01-15 14:56:00 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-01-15 14:56:00 +0000 |
commit | 3d5e0210feacf96e21e1916ab0df84b83f5f05e2 (patch) | |
tree | c9f82ab699f4f4b589345a55a70880ebf5089c90 /templates/web/base/alert | |
parent | 0e257b2201998d428b3624a15dfeeb03a5559371 (diff) | |
parent | b8685054be0e16bc836dc568c0687a6f86400f38 (diff) |
Merge branch '1300-multiple-update-photos'
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 %] |