{% extends 'base.html' %} {% load static wagtailcore_tags wagtailimages_tags lazyimages_tags wagtailiconchooser_tags i18n online_share %} {% block extra_css %} {% endblock extra_css %} {% block content %}
{% include "breadcrumbs_include.html" %}
{% if page.status != "Actual" %}
{% svg_icon name="warning" %}
{% trans "Warning: This is not an Actual alert" %} {% trans "The alert below is marked as" %} {{ page.status }} — {% trans "not actionable to the general public." %}
{% endif %} {% if page.reference_alerts %}

{% if page.msgType == "Update" %}{% translate "This alert updates the previously published alerts below:" %}{% endif %} {% if page.msgType == "Cancel" %}{% translate "This alert cancels the previously published alerts below:" %}{% endif %}

{% for ref_alert in page.reference_alerts %} {% with ref_alert.infos.0 as alert_info %}
{{ ref_alert.title }}
{{ ref_alert.sent }}
{% endwith %} {% endfor %}
{% endif %}

{% translate "CAP Alert" %} · {{ page.status }}

{{ page.title }}

{% svg_icon name="cap-alert" %} CAP XML {% if page.search_image %} {% image page.search_image original as alert_png %} {% svg_icon name="image" %} {% translate "PNG" %} {% endif %} {% if page.alert_pdf_preview %} {% svg_icon name="doc-full-inverse" %} {% translate "PDF" %} {% endif %}
{% with sorted_infos.0 as first_info %} {% if first_info %}
{% if first_info.event_icon %}{% svg_icon name=first_info.event_icon %}{% endif %}
{{ first_info.status }}: {{ first_info.event }}
{{ first_info.severity.label }}
{% endif %} {% endwith %}
{% with sorted_infos.0 as fi %} {% if fi %}
{% svg_icon name="time" %} {% translate "Urgency" %} {% with u=fi.info.value.urgency %} {% if u == "Immediate" %}{% translate "Immediate" %} {% elif u == "Expected" %}{% translate "Expected" %} {% elif u == "Future" %}{% translate "Future" %} {% elif u == "Past" %}{% translate "Past" %} {% endif %} {% endwith %}
{% svg_icon name="warning" %} {% translate "Severity" %} {% with s=fi.info.value.severity %} {% if s == "Extreme" %}{% translate "Extreme" %} {% elif s == "Severe" %}{% translate "Severe" %} {% elif s == "Moderate" %}{% translate "Moderate" %} {% elif s == "Minor" %}{% translate "Minor" %} {% endif %} {% endwith %}
{% svg_icon name="crosshairs" %} {% translate "Certainty" %} {% with c=fi.info.value.certainty %} {% if c == "Observed" %}{% translate "Observed" %} {% elif c == "Likely" %}{% translate "Likely" %} {% elif c == "Possible" %}{% translate "Possible" %} {% elif c == "Unlikely" %}{% translate "Unlikely" %} {% endif %} {% endwith %}
{% svg_icon name="cap-category" %} {% translate "Category" %} {{ fi.category }}
{% svg_icon name="cap-language" %} {% translate "Language" %} {{ fi.info.value.language }}
{% translate "Time period" %}
  • {% translate "Issued" %} {{ page.sent|date:"d M Y H:i" }}
  • {% translate "Effective" %} {% if fi.info.value.effective %}{{ fi.info.value.effective|date:"d M Y H:i" }} {% else %}{{ page.sent|date:"d M Y H:i" }}{% endif %}
  • {% if fi.info.value.onset %}
  • {% translate "Onset" %} {{ fi.info.value.onset|date:"d M Y H:i" }}
  • {% endif %}
  • {% translate "Expires" %} {{ fi.info.value.expires|date:"d M Y H:i" }}
{% endif %} {% endwith %}
{% translate "Severity" %}
{% translate "Extreme" %}
{% translate "Severe" %}
{% translate "Moderate" %}
{% translate "Minor" %}
{% if sorted_infos|length > 0 %}
{% for item in sorted_infos %} {% endfor %}
{% endif %}
{% for alert_info in sorted_infos %} {% with item=alert_info.info %}
{% if item.value.headline %}

{{ item.value.headline }}

{% endif %} {% if item.value.responseType %}
{% translate "Response" %}

{% for r in item.value.responseType %} {% with rt=r.response_type %} {% if rt == "Shelter" %}{% translate "Shelter" %} {% elif rt == "Evacuate" %}{% translate "Evacuate" %} {% elif rt == "Prepare" %}{% translate "Prepare" %} {% elif rt == "Execute" %}{% translate "Execute" %} {% elif rt == "Avoid" %}{% translate "Avoid" %} {% elif rt == "Monitor" %}{% translate "Monitor" %} {% elif rt == "Assess" %}{% translate "Assess" %} {% elif rt == "AllClear" %}{% translate "All Clear" %} {% elif rt == "None" %}{% translate "None" %} {% endif %} {% endwith %} {% if not forloop.last %}, {% endif %} {% endfor %}

{% endif %}
{% translate "Area" %}
{% for area in item.value.area %}

{{ area.value.areaDesc }}

{% endfor %}
{% translate "Event description" %}

{{ item.value.description }}

{% if item.value.instruction %}
{% translate "Instructions" %}

{{ item.value.instruction }}

{% endif %}
{% endwith %} {% endfor %}
{% endblock %} {% block extra_js %} {% endblock extra_js %}