diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-03 17:58:31 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-10 16:53:14 +0000 |
commit | a91d9562c6c0ec836f10290df779e2012f18ddec (patch) | |
tree | 6e117020105d98bb6d3993af727eccc846c26cb9 /templates | |
parent | c3c04c7dc01ed660c22c4bd43f308a01a47e7bcc (diff) |
Add is_in_progress Problem helper.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/banner.html | 3 | ||||
-rw-r--r-- | templates/web/fixmystreet.com/report/banner.html | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/templates/web/base/report/banner.html b/templates/web/base/report/banner.html index 188e96502..c80d129eb 100644 --- a/templates/web/base/report/banner.html +++ b/templates/web/base/report/banner.html @@ -14,7 +14,6 @@ [% IF problem.is_closed %] [% INCLUDE banner, id = 'closed', text = loc('Closed') %] [% END %] -[% states = [ 'investigating', 'in progress', 'planned', 'action scheduled' ]; - IF states.grep(problem.state).size %] +[% IF problem.is_in_progress %] [% INCLUDE banner, id = 'progress', text = loc('In progress') %] [% END %] diff --git a/templates/web/fixmystreet.com/report/banner.html b/templates/web/fixmystreet.com/report/banner.html index 35d7be179..6fd74a7fe 100644 --- a/templates/web/fixmystreet.com/report/banner.html +++ b/templates/web/fixmystreet.com/report/banner.html @@ -20,8 +20,7 @@ [% INCLUDE banner, id = 'unknown', text = loc('Unknown') %] [% END %] - [% states = [ 'investigating', 'in progress', 'planned', 'action scheduled' ]; - IF states.grep(problem.state).size %] + [% IF problem.is_in_progress %] [% INCLUDE banner, id = 'progress', text = loc('In progress') %] [% END %] |