diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2016-11-28 12:50:45 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-01-12 15:17:32 +0000 |
commit | d967ee5ef454c8e3b91812bc2280a3969d0d6baa (patch) | |
tree | 7306646b8f655fdd5571c61a7bf670e93ff9d45a /templates | |
parent | b80c49adc9e769cdd6a41a6fef23dd5c9b1a578c (diff) |
Show response priorities in report list items
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/_item.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/templates/web/base/report/_item.html b/templates/web/base/report/_item.html index 02457e5a0..dc4ccbf4e 100644 --- a/templates/web/base/report/_item.html +++ b/templates/web/base/report/_item.html @@ -13,6 +13,13 @@ <div class="item-list__description">[% problem.detail | html %]</div> [% END %] <small> + [% IF NOT no_fixed AND problem.is_fixed %] + <span class="item-list__item__state">[% loc('Fixed') %]</span> + [% ELSIF NOT no_fixed AND problem.is_closed %] + <span class="item-list__item__state">[% loc('Closed') %]</span> + [% ELSIF problem.response_priority AND (c.user.has_permission_to('report_edit_priority', problem.bodies_str_ids) OR c.user.has_permission_to('report_inspect', problem.bodies_str_ids)) %] + <span class="item-list__item__state">[% problem.response_priority.name %]</span> + [% END %] [%- IF c.cobrand.moniker != 'fixamingata' %] [%# Default: %] [%- prettify_dt( problem.confirmed, 1 ) %] [%- ELSE %] [%# Swedish cobrand fixamingata: %] @@ -29,11 +36,6 @@ [% ELSIF problem.bodies_str_ids.size == 0 %] [% loc('(not sent to council)') %] [% END %] [% END %] - [% IF NOT no_fixed AND problem.is_fixed %] - [% loc('(fixed)') %] - [% ELSIF NOT no_fixed AND problem.is_closed %] - [% loc('(closed)') %] - [% END %] </small> [% IF c.user.has_permission_to('report_inspect', problem.bodies_str_ids) %] |