mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-27 10:50:30 -04:00
This prefixes everything to do with areas/the map with `area-list`, so from looking at one element you know which `.scss` file will contain the relevant code.
31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
{% macro map(broadcast_message) %}
|
|
<div id="area-list-map"></div>
|
|
<ul>
|
|
<li class="area-list-key area-list-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>
|
|
alert
|
|
</li>
|
|
<li class="area-list-key area-list-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
|
|
</li>
|
|
<li class="area-list-key area-list-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 %}
|
|
</li>
|
|
</ul>
|
|
{% endmacro %}
|