aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-08 11:22:20 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-11 17:02:25 +0000
commitfb65300cbf6fb9ca9ad077b12d44f188294d8005 (patch)
tree5bbdddfa69978576f39ad57aa9691624459f266f /templates
parentd8d3da1119e41fd7a57a4664e92a644ba1a9c919 (diff)
[fixmystreet.com] Improve two-tier unresponsive.
Similarly to 1f69e28c, we were previously only checking the first matching entry, which led to confusing behaviour in places. Include consequential amendments for e.g. one body being unresponsive, the other not.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/fixmystreet.com/report/new/unresponsive_body.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/web/fixmystreet.com/report/new/unresponsive_body.html b/templates/web/fixmystreet.com/report/new/unresponsive_body.html
index 0a34475bc..54a9fb195 100644
--- a/templates/web/fixmystreet.com/report/new/unresponsive_body.html
+++ b/templates/web/fixmystreet.com/report/new/unresponsive_body.html
@@ -1,8 +1,10 @@
-[% SET soon = bodies.$body_id.name == 'Northamptonshire County Council' %]
+[%
+SET first = body_id.keys.first; # Might be more than one, but showing one will do
+SET soon = bodies.$first.name == 'Northamptonshire County Council' %]
<div class="box-warning">
<h1>Important message</h1>
<p>
- <span class="unresponsive-council">[% bodies.$body_id.name %]</span> doesn’t currently accept
+ <span class="unresponsive-council">[% bodies.$first.name %]</span> doesn’t currently accept
[% IF soon %]
FixMyStreet reports – though it will do so soon.
[% ELSE %]
@@ -12,6 +14,7 @@
reports from third party reporting sites such as FixMyStreet.
[% END %]
</p>
- <p>We can make your report public, but [% 'at the moment' IF soon %] we can’t send it to the council.</p>
- <a href="[% c.cobrand.base_url %]/unresponsive?body=[% body_id %][% IF category %];category=[% category | uri %][% END %]" class="btn">[% soon ? 'Find out more' : 'What can I do instead?' %]</a>
+ <p>We can make your report public, but [% 'at the moment' IF soon %] we can’t send it to
+ [% IF bodies.size > 1 %] that [% ELSE %] the [% END %] council.</p>
+ <a href="[% c.cobrand.base_url %]/unresponsive?body=[% first %][% IF category %];category=[% category | uri %][% END %]" class="btn">[% soon ? 'Find out more' : 'What can I do instead?' %]</a>
</div>