2020-09-08 16:35:03 +01:00
{% macro map(broadcast_message) %}
2020-10-05 13:47:21 +01:00
< div id = "area-list-map" > < / div >
2020-09-08 16:35:03 +01:00
< ul >
2020-10-05 13:47:21 +01:00
< li class = "area-list-key area-list-key--certain" >
2020-09-08 16:35:03 +01:00
< span class = "visually-hidden" >
An area of {{ "{:,.1f}".format(broadcast_message.simple_polygons.estimated_area) }} square miles
< / span >
Will get
< span class = "visually-hidden" > the< / span >
Make estimated phone count clearer
We’ve had some feedback from user research that difference between
‘will get alert’ and ‘likely to get alert’ is not clear, and it’s hard
to tell if the latter is inclusive of the former. This leads people to
question the validity of these numbers, which is important, because an
the estimate should give you some idea of the impact of what you’re
about to do.
This commit reformats the number as a range, for example 1,000 to 2,000
phones.
If the range is small, eg 40,000,000 to 40,800,000 then this suggests
a false level of accuracy. So instead we just give one number and say
it’s an estimate, eg ‘40,000,000 phones estimated’
2020-09-24 15:52:18 +01:00
alert
2020-09-08 16:35:03 +01:00
< / li >
2020-10-05 13:47:21 +01:00
< li class = "area-list-key area-list-key--likely" >
2020-09-08 16:35:03 +01:00
< span class = "visually-hidden" >
An extra area of {{ "{:,.1f}".format(broadcast_message.simple_polygons.bleed.estimated_area - broadcast_message.simple_polygons.estimated_area) }} square miles is
< / span >
Likely to get
< span class = "visually-hidden" >
the
< / span >
alert
Make estimated phone count clearer
We’ve had some feedback from user research that difference between
‘will get alert’ and ‘likely to get alert’ is not clear, and it’s hard
to tell if the latter is inclusive of the former. This leads people to
question the validity of these numbers, which is important, because an
the estimate should give you some idea of the impact of what you’re
about to do.
This commit reformats the number as a range, for example 1,000 to 2,000
phones.
If the range is small, eg 40,000,000 to 40,800,000 then this suggests
a false level of accuracy. So instead we just give one number and say
it’s an estimate, eg ‘40,000,000 phones estimated’
2020-09-24 15:52:18 +01:00
< / li >
2020-10-05 13:47:21 +01:00
< li class = "area-list-key area-list-key--phone-estimate" >
2021-01-27 11:24:22 +00:00
{% if broadcast_message.count_of_phones == 0 %}
Unknown number of phones
{% elif broadcast_message.count_of_phones == broadcast_message.count_of_phones_likely %}
Make estimated phone count clearer
We’ve had some feedback from user research that difference between
‘will get alert’ and ‘likely to get alert’ is not clear, and it’s hard
to tell if the latter is inclusive of the former. This leads people to
question the validity of these numbers, which is important, because an
the estimate should give you some idea of the impact of what you’re
about to do.
This commit reformats the number as a range, for example 1,000 to 2,000
phones.
If the range is small, eg 40,000,000 to 40,800,000 then this suggests
a false level of accuracy. So instead we just give one number and say
it’s an estimate, eg ‘40,000,000 phones estimated’
2020-09-24 15:52:18 +01:00
{{ broadcast_message.count_of_phones|format_thousands }} phones estimated
{% else %}
{{ broadcast_message.count_of_phones|format_thousands }} to {{ broadcast_message.count_of_phones_likely|format_thousands }} phones
{% endif %}
2020-09-08 16:35:03 +01:00
< / li >
< / ul >
{% endmacro %}