diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2016-03-02 15:48:40 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-03-08 15:46:59 +0000 |
commit | eb49f9af01b73b6ad187f912f3e5b24e370177c1 (patch) | |
tree | e20eaa1b3b0790b82db8a9e6e61244d7370f7283 /templates | |
parent | 2e344a744f23d6f8cf2300b40d98152d26fee2dd (diff) |
Wrap multiple report/update photos onto one line.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/photo.html | 10 |
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 %] |