aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/alert/index.html
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-07 18:08:58 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-07 18:09:05 +0000
commit3d631a9ee48fbff1741525f7ad9e9a530854d03b (patch)
tree0a1f2ad022fe90145fe78938fb7ca844dadb370f /templates/web/default/alert/index.html
parent54aeaf92acf5091c3b90d91848005893371e9590 (diff)
Add hash as query parameter on photos so that rotating instantly works, no cache issues (fixes a3).
Diffstat (limited to 'templates/web/default/alert/index.html')
-rw-r--r--templates/web/default/alert/index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/web/default/alert/index.html b/templates/web/default/alert/index.html
index 1f0635ae4..36c0daf91 100644
--- a/templates/web/default/alert/index.html
+++ b/templates/web/default/alert/index.html
@@ -40,9 +40,11 @@ To find out what local alerts we have for you, please enter your [% c.cobrand.co
<div class="sticky-sidebar" id="alert_recent">
<aside>
<h2>[% loc('Some photos of recent reports') %]</h2>
- [% FOREACH p IN photos %]
+ [% FOREACH p IN 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 %]
</aside>
</div>