diff options
author | Chris Mytton <self@hecticjeff.net> | 2013-09-02 13:21:17 +0100 |
---|---|---|
committer | Chris Mytton <self@hecticjeff.net> | 2013-09-02 13:21:17 +0100 |
commit | ec890c87afe58f48a212019315222ae27d92672d (patch) | |
tree | 52229636962b1e6036e4c1010671d2b5ce2aa166 | |
parent | f85e5303d94931c47e4d74311fc4d9db1454be65 (diff) |
[Zurich] Show thumbnails on admin summary pages
Closes mysociety/FixMyStreet-Commercial#406
-rw-r--r-- | templates/web/zurich/admin/index-dm.html | 1 | ||||
-rw-r--r-- | templates/web/zurich/admin/index-sdm.html | 1 | ||||
-rw-r--r-- | templates/web/zurich/admin/problem_row.html | 8 |
3 files changed, 10 insertions, 0 deletions
diff --git a/templates/web/zurich/admin/index-dm.html b/templates/web/zurich/admin/index-dm.html index 530e72c59..e0b62d5d2 100644 --- a/templates/web/zurich/admin/index-dm.html +++ b/templates/web/zurich/admin/index-dm.html @@ -26,6 +26,7 @@ [% IF include_subdiv %] <th>[% loc('Subdivision/Body') %]</th> [% END %] + <th>[% loc('Photo') %]</th> <th class='edit'>*</th> </tr> <tr class="filter-row"> diff --git a/templates/web/zurich/admin/index-sdm.html b/templates/web/zurich/admin/index-sdm.html index 76593ead0..707bb2d9d 100644 --- a/templates/web/zurich/admin/index-sdm.html +++ b/templates/web/zurich/admin/index-sdm.html @@ -21,6 +21,7 @@ [% FOREACH col IN [ [ 'category', loc('Category') ], [ 'created', loc('Submitted') ], [ 'lastupdate', loc('Updated') ], [ 'state', loc('Status') ] ] %] <th><a href="[% INCLUDE sort_link choice = col.0 %]#[% hash %]">[% col.1 %] [% INCLUDE sort_arrow choice = col.0 %]</a></th> [% END %] + <th>[% loc('Photo') %]</th> [% IF NOT no_edit %] <th class='edit'>*</th> [% END %] diff --git a/templates/web/zurich/admin/problem_row.html b/templates/web/zurich/admin/problem_row.html index 8b1a30cb0..162b6992a 100644 --- a/templates/web/zurich/admin/problem_row.html +++ b/templates/web/zurich/admin/problem_row.html @@ -32,6 +32,14 @@ </td> [% END %] + <td> + [% IF problem.photo; + photo = problem.get_photo_params + %] + <img class="img" height="60" width="90" src="[% photo.url_fp %]" alt=""> + [% END %] + </td> + [% IF NOT no_edit %] <td><a href="[% c.uri_for( 'report_edit', problem.id ) %]">[% loc('Edit') %]</a></td> [% END %] |