diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/default/alert/index.html | 5 | ||||
-rw-r--r-- | templates/web/default/alert/list.html | 5 | ||||
-rw-r--r-- | templates/web/default/index.html | 5 |
3 files changed, 12 insertions, 3 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 %] diff --git a/templates/web/default/alert/list.html b/templates/web/default/alert/list.html index 1682b5a66..32c531247 100644 --- a/templates/web/default/alert/list.html +++ b/templates/web/default/alert/list.html @@ -27,7 +27,10 @@ [% IF photos %] <div id="alert_photos"> <h2>[% loc('Photos of recent nearby 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 %] 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 %] |