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 >
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
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" >
2020-09-24 15:52:18 +01:00
{% if broadcast_message.count_of_phones == broadcast_message.count_of_phones_likely %}
{{ 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 %}