diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-09 10:37:41 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-09 10:37:41 +0100 |
commit | 2f905f6b8f74a5a892b3974e4f0b4076f9b58ddf (patch) | |
tree | 4a491cd4fee20315b08eb1be87f6f51f5b19fa8e /templates/web/default/alert/index.html | |
parent | 2e8c9f4ab19f8db068318239f15f2458dd64aa00 (diff) |
Migrate recent_photos to new ResultSet, nice joining with problem_find_nearby procedure.
Diffstat (limited to 'templates/web/default/alert/index.html')
-rw-r--r-- | templates/web/default/alert/index.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/web/default/alert/index.html b/templates/web/default/alert/index.html index 7e03be4ae..3c01c44d4 100644 --- a/templates/web/default/alert/index.html +++ b/templates/web/default/alert/index.html @@ -29,7 +29,10 @@ postcode or street name and area:' ) %] [% IF photos %] <div id="alert_recent"> <h2>[% loc('Some photos of recent reports') %]</h2> - [% photos %] + [% FOREACH p IN photos %] + <a href="/report/[% p.id %]"><img border="0" height="100" + src="/photo?tn=1;id=[% p.id %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a> + [% END %] </div> [% END %] [%# FIXME - put in blurb here %] |