2020-09-08 16:35:03 +01:00
{% macro map(broadcast_message) %}
< div id = "map" ></ div >
< ul >
< li class = "area-key area-key--certain" >
< 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 >
< li class = "area-key area-key--likely" >
< 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 >
< li class = "area-key area-key--phone-estimate" >
{% 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 %}