diff options
author | Chris Mytton <self@hecticjeff.net> | 2013-09-12 11:10:41 +0100 |
---|---|---|
committer | Chris Mytton <self@hecticjeff.net> | 2013-09-12 11:10:41 +0100 |
commit | be464135d3021851d076a92a5bffa579064d9a68 (patch) | |
tree | cbd06608b67bb5d0efe16dda536b660f43751c5f | |
parent | 1552107131d95beddcf042e3b1cd680f36b729ec (diff) |
[Zurich] Fix photo thumbnail on admin report_edit
Because the report has not yet been published, the image isn't public,
so we have to use the .temp.jpeg form of the url.
-rw-r--r-- | templates/web/zurich/admin/report_edit.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html index 648b91b08..deadcb314 100644 --- a/templates/web/zurich/admin/report_edit.html +++ b/templates/web/zurich/admin/report_edit.html @@ -68,8 +68,8 @@ <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 %]<a href="[% photo.url_full %]" rel="fancy">[% END %] + <img alt="Photo of this report" src="[% c.cobrand.base_url %]/photo/[% problem.photo %].temp.jpeg"> [%- IF photo.url_full %]<span>zoom</span></a>[% END %] </div> <br> |