{% extends "base.html" %} {% block title %}{{ location_map.title }} · {{ site.title }}{% endblock %} {% block content %}

{{ location_map.title }}

{% if failed %} {% else %}
{{ t("map.total") }} {{ distribution.total }} {{ value_label }}
{{ t("map.located") }} {{ distribution.located }} {{ t("map.located_detail", states=distribution.states|length, cities=distribution.cities|length) }}
{{ t("map.unlocated") }} {{ distribution.unlocated }} {{ value_label }}
{% if distribution.located %}
{{ svg|safe }}
{{ t("map.legend_title", value_label=value_label) }}
    {% for entry in legend %}
  • {% if entry.low == entry.high %}{{ entry.low }}{% else %}{{ entry.low }}–{{ entry.high }}{% endif %}
  • {% endfor %}
  • {{ t("map.legend_city", value_label=value_label) }}
{% for entry in distribution.states %} {% endfor %}
{{ t("map.states") }}
{{ t("map.state") }}{{ value_label }}
{{ entry.state }}{{ entry.count }}
{% if distribution.cities %}
{% for entry in distribution.cities %} {% endfor %}
{{ t("map.cities") }}
{{ t("map.city") }}{{ t("map.state") }}{{ value_label }}
{{ entry.city }}{{ entry.state }}{{ entry.count }}
{% endif %}
{% else %}

{{ t("map.empty", value_label=value_label) }}

{% endif %} {% endif %}
{% endblock %}