aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-01-12 15:28:15 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-12 15:28:15 +0000
commitde6df5e30d4801afc560e93c833a692a117b9547 (patch)
treed66e9958c7e976e779c0e23e88631bd9c5af777d /templates
parent0715183153048e2bdbf838d6206ae50103d50384 (diff)
Remove most passing of Catalyst to PhotoSet.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/admin/report_edit.html2
-rw-r--r--templates/web/base/report/photo.html2
-rw-r--r--templates/web/zurich/admin/problem_row.html2
-rw-r--r--templates/web/zurich/admin/report_edit-sdm.html2
-rw-r--r--templates/web/zurich/admin/report_edit.html2
5 files changed, 5 insertions, 5 deletions
diff --git a/templates/web/base/admin/report_edit.html b/templates/web/base/admin/report_edit.html
index 8cb513be8..72e2c56db 100644
--- a/templates/web/base/admin/report_edit.html
+++ b/templates/web/base/admin/report_edit.html
@@ -79,7 +79,7 @@ class="admin-offsite-link">[% problem.latitude %], [% problem.longitude %]</a>
[% IF problem.photo %]
<li>
<ul>
- [% FOR photo IN problem.get_photoset(c).images %]
+ [% FOR photo IN problem.get_photoset.images %]
<li>
<div class="update-img">
<a href="[% c.cobrand.base_url %]/photo/[% photo.0 %].fulltemp.jpeg" rel="fancy">
diff --git a/templates/web/base/report/photo.html b/templates/web/base/report/photo.html
index 094f677d8..4114fad72 100644
--- a/templates/web/base/report/photo.html
+++ b/templates/web/base/report/photo.html
@@ -1,6 +1,6 @@
[% IF c.cobrand.allow_photo_display(object) && object.photo %]
[% IF object.can('get_photoset') %]
- [% FOR photo IN object.get_photoset(c).images %]
+ [% FOR photo IN object.get_photoset.images %]
<div class="update-img">
<a href="[% c.cobrand.base_url %]/photo/[% object.id %].[% loop.index %].full.jpeg?[% photo.0 %]" rel="fancy">
<img alt="Photo of this report" src="[% c.cobrand.base_url %]/photo/[% object.id %].[% loop.index %].jpeg?[% photo.0 %]">
diff --git a/templates/web/zurich/admin/problem_row.html b/templates/web/zurich/admin/problem_row.html
index baa8d3ac7..8a26f28ae 100644
--- a/templates/web/zurich/admin/problem_row.html
+++ b/templates/web/zurich/admin/problem_row.html
@@ -36,7 +36,7 @@
<td>
[% IF problem.photo %]
- [% FOR photo IN problem.get_photoset(c).images %]
+ [% FOR photo IN problem.get_photoset.images %]
<div class="update-img">
<img height="60" width="90" alt="" src="[% c.cobrand.base_url %]/photo/[% photo.0 %].temp.jpeg">
</div>
diff --git a/templates/web/zurich/admin/report_edit-sdm.html b/templates/web/zurich/admin/report_edit-sdm.html
index 8e576a718..1d1b60e56 100644
--- a/templates/web/zurich/admin/report_edit-sdm.html
+++ b/templates/web/zurich/admin/report_edit-sdm.html
@@ -82,7 +82,7 @@
[% IF problem.photo %]
<dd>
- [% FOR photo IN problem.get_photoset(c).images %]
+ [% FOR photo IN problem.get_photoset.images %]
<div class="update-img">
<a href="[% c.cobrand.base_url %]/photo/[% photo.0 %].fulltemp.jpeg" rel="fancy">
<img alt="Photo of this report" src="[% c.cobrand.base_url %]/photo/[% photo.0 %].temp.jpeg">
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html
index 64d0950ee..239646f6c 100644
--- a/templates/web/zurich/admin/report_edit.html
+++ b/templates/web/zurich/admin/report_edit.html
@@ -106,7 +106,7 @@
[% IF problem.photo %]
<dd>
- [% FOR photo IN problem.get_photoset(c).images %]
+ [% FOR photo IN problem.get_photoset.images %]
<div class="update-img">
<a href="[% c.cobrand.base_url %]/photo/[% photo.0 %].fulltemp.jpeg" rel="fancy">
<img alt="Photo of this report" src="[% c.cobrand.base_url %]/photo/[% photo.0 %].temp.jpeg">