Skip to content

Commit

Permalink
[Zurich] Show thumbnails on admin summary pages
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismytton committed Sep 2, 2013
1 parent f85e530 commit ec890c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/web/zurich/admin/index-dm.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ <h2 id="alle">[% loc('All reports') %]</h2>
[% IF include_subdiv %]
<th>[% loc('Subdivision/Body') %]</th>
[% END %]
<th>[% loc('Photo') %]</th>
<th class='edit'>*</th>
</tr>
<tr class="filter-row">
Expand Down
1 change: 1 addition & 0 deletions templates/web/zurich/admin/index-sdm.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ <h2 id="alle">[% loc('Reports published') %]</h2>
[% 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 %]
Expand Down
8 changes: 8 additions & 0 deletions templates/web/zurich/admin/problem_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %]
Expand Down

0 comments on commit ec890c8

Please sign in to comment.