diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-14 11:40:58 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-14 11:40:58 +0000 |
commit | 5277e0c376341e2b5b669d9033b467cfcfc47c7a (patch) | |
tree | 16823ac693c78bb8d8d8382a27ec4c8ce4adc9ce | |
parent | 7b3d8a737a50bc4447f6fbb6c6ea99ad61e6c919 (diff) |
Spacing fixes, and SET is needed with conditional.
-rw-r--r-- | templates/web/default/report/updates.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/web/default/report/updates.html b/templates/web/default/report/updates.html index 65f743526..b7adb014f 100644 --- a/templates/web/default/report/updates.html +++ b/templates/web/default/report/updates.html @@ -29,14 +29,14 @@ [%- IF !update_state && update.problem_state %] [%- state = update.meta_problem_state %] [%- IF c.cobrand.moniker == 'bromley' OR problem.bodies_str == '2482' %] - [% state = loc('no further action') IF update.problem_state == 'unable to fix' %] - [% state = loc('third party responsibility') IF update.problem_state == 'not responsible' %] - [% END %] + [%- SET state = loc('no further action') IF update.problem_state == 'unable to fix' %] + [%- SET state = loc('third party responsibility') IF update.problem_state == 'not responsible' %] + [%- END %] [%- IF update.problem_state == 'confirmed' AND global.last_state != '' %] [%- update_state = ", " _ loc('reopened') %] [%- ELSIF update.problem_state != 'confirmed' %] [%- update_state = ", " _ tprintf(loc( 'marked as %s' ), state ) %] - [% END %] + [%- END %] [%- END %] [%- update_state IF update_state != global.last_state %] [%- global.last_state = update_state %] |