aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-03-08 15:50:23 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-03-08 15:50:23 +0000
commit2e0f8da2f9e1c99f87158fc439254fe8e4b42550 (patch)
treea16c6f7a4be5ebef9279e3e7d5d610bc447479f3 /templates
parent38a75cdb259b37e42313e8202eee6bee3f5c4868 (diff)
parenteb49f9af01b73b6ad187f912f3e5b24e370177c1 (diff)
Merge branch '1325-multiple-report-images'
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/photo.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/web/base/report/photo.html b/templates/web/base/report/photo.html
index 9be5b6538..52e6ed64a 100644
--- a/templates/web/base/report/photo.html
+++ b/templates/web/base/report/photo.html
@@ -1,9 +1,15 @@
[% IF c.cobrand.allow_photo_display(object) && object.photo %]
- [% FOR photo IN object.photos %]
+ [% IF object.photos.size > 1 %]
+ <div class="update-img-set">
+ [% END %]
+ [% FOR photo IN object.photos %]
<div class="update-img">
<a href="[% c.cobrand.base_url %][% photo.url_full %]" rel="fancy">
<img alt="Photo of this report" src="[% c.cobrand.base_url %][% photo.url %]">
<span>zoom</span></a>
</div>
- [% END %]
+ [% END %]
+ [% IF object.photos.size > 1 %]
+ </div>
+ [% END %]
[% END %]