diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-18 21:12:48 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-23 14:01:31 +0100 |
commit | d217e9be67c0f552924773858ede5ee3f7fc88e4 (patch) | |
tree | 4b742dc3f498e520a39937a0ac26eca01f9db4be /templates | |
parent | 2b4ed83466ddf54f6d7e77088dc7e755f9259e91 (diff) |
Join response_priority if needed, and reorder template conditional to not check if no permission.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/_item.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/base/report/_item.html b/templates/web/base/report/_item.html index a892086ca..153fbf58e 100644 --- a/templates/web/base/report/_item.html +++ b/templates/web/base/report/_item.html @@ -43,7 +43,7 @@ <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)) %] + [% ELSIF (c.user.has_permission_to('report_edit_priority', problem.bodies_str_ids) OR c.user.has_permission_to('report_inspect', problem.bodies_str_ids)) AND problem.response_priority %] <span class="item-list__item__state">[% problem.response_priority.name %]</span> [% END %] [%- IF c.cobrand.moniker != 'fixamingata' %] [%# Default: %] |