aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2013-08-30 16:48:46 +0100
committerChris Mytton <self@hecticjeff.net>2013-08-30 16:48:46 +0100
commit7166098aefdca933f41f1fd2165203867a0dcd89 (patch)
tree878f202a63e5a6ad8865147b35df4f05a53f1d7c
parent25943aaa61115a5ba573ab48c3dcebf55e9da970 (diff)
[Zurich] Add full size image link to report admin
This will allow the image to be opened full size in a fancybox, just like the front end of the site currently does.
-rw-r--r--templates/web/zurich/admin/report_edit.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html
index 5c5b1f7b1..4b3a8b8aa 100644
--- a/templates/web/zurich/admin/report_edit.html
+++ b/templates/web/zurich/admin/report_edit.html
@@ -62,7 +62,13 @@
[% IF problem.photo %]
-<li><img alt="" src="[% c.cobrand.base_url %]/photo/[% problem.photo %].temp.jpeg">
+<li>
+[% photo = problem.get_photo_params %]
+<div class="update-img">
+ [% IF photo.url_full %]<a href="[% photo.url_full %]" rel="fancy">[% END
+ %]<img alt="Photo of this report" [% IF photo.height %]height="[% photo.height %]" width="[% photo.width %]"[% END %] src="[% photo.url %]">
+ [%- IF photo.url_full %]<span>zoom</span></a>[% END %]
+</div>
<br>
<input type="submit" name="rotate_photo" value="[% loc('Rotate Left') %]">
<input type="submit" name="rotate_photo" value="[% loc('Rotate Right') %]">