aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2013-09-02 12:43:58 +0100
committerChris Mytton <self@hecticjeff.net>2013-09-02 12:43:58 +0100
commitf85e5303d94931c47e4d74311fc4d9db1454be65 (patch)
treee8819e97817c7daa657d7757a2c206d9c91d208d
parentb1e96e396f27a9636c2a0ee6bc25311ba6175f43 (diff)
parent6aa44aa13562b61560801319250685a5a3e6b040 (diff)
Merge branch 'zurich-admin-image-zoom'
-rw-r--r--templates/web/zurich/admin/report_edit.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html
index 5c5b1f7b1..5c5cdf182 100644
--- a/templates/web/zurich/admin/report_edit.html
+++ b/templates/web/zurich/admin/report_edit.html
@@ -1,4 +1,5 @@
[%
+ PROCESS "report/photo-js.html";
PROCESS "maps/zurich.html";
INCLUDE 'admin/header.html'
title = tprintf(loc('Editing problem %d'), problem.id ),
@@ -62,7 +63,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') %]">