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/index.html | |
parent | 2e8c9f4ab19f8db068318239f15f2458dd64aa00 (diff) |
Migrate recent_photos to new ResultSet, nice joining with problem_find_nearby procedure.
Diffstat (limited to 'templates/web/default/index.html')
-rw-r--r-- | templates/web/default/index.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/web/default/index.html b/templates/web/default/index.html index 4007e82a7..9c786459c 100644 --- a/templates/web/default/index.html +++ b/templates/web/default/index.html @@ -76,7 +76,10 @@ <div id="front_recent"> [% IF recent_photos %] <h2>[% loc('Photos of recent reports') %]</h2> - [% recent_photos %] + [% FOREACH p IN recent_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 %] [% END %] [% IF probs.size %] |