diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-07 18:08:58 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-07 18:09:05 +0000 |
commit | 3d631a9ee48fbff1741525f7ad9e9a530854d03b (patch) | |
tree | 0a1f2ad022fe90145fe78938fb7ca844dadb370f /templates/web/default/index.html | |
parent | 54aeaf92acf5091c3b90d91848005893371e9590 (diff) |
Add hash as query parameter on photos so that rotating instantly works, no cache issues (fixes a3).
Diffstat (limited to 'templates/web/default/index.html')
-rw-r--r-- | templates/web/default/index.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/web/default/index.html b/templates/web/default/index.html index beaeefb20..9dc6f54b2 100644 --- a/templates/web/default/index.html +++ b/templates/web/default/index.html @@ -41,9 +41,11 @@ <h2>[% loc('Recently reported problems') %]</h2> [% IF recent_photos.size %] <p id="front_photos"> - [% FOREACH p IN recent_photos %] + [% FOREACH p IN recent_photos; + photo = p.get_photo_params; + %] <a href="/report/[% p.id %]"><img border="0" height="100" - src="/photo/[% p.id %].tn.jpeg" alt="[% p.title | html %]" title="[% p.title | html %]"></a> + src="[% photo.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a> [% END %] </p> [% END %] |