{% extends "withnav_template.html" %} {% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading, row_heading, date_field %} {% from "components/previous-next-navigation.html" import previous_next_navigation %} {% from "components/page-footer.html" import page_footer %} {% from "components/pill.html" import pill %} {% from "components/message-count-label.html" import message_count_label, recipient_count_label %} {% block page_title %} {{ message_count_label(99, message_type, suffix='') | capitalize }} – GOV.UK Notify {% endblock %} {% block maincolumn_content %}

{%- if request_args.get('status') != 'delivered,failed' -%} {%- for label, option, _, _ in status_filters -%} {%- if request_args.get('status', 'delivered,failed') == option -%}{{label}} {% endif -%} {%- endfor -%} {%- endif -%} {{- message_count_label(99, message_type, suffix='') | capitalize }}

{{ pill( 'Status', status_filters, request_args.get('status', '') ) }}
{% if notifications %}

Download as a CSV file   Delivery information is available for 7 days

{% endif %} {% if notifications %}
{% endif %} {% call(item, row_number) list_table( notifications, caption="Recent activity", caption_visible=False, empty_message='No messages found', field_headings=['Recipient', 'Started', 'Status'], field_headings_visible=False ) %} {% call row_heading() %}

{{ item.to }}

{% if item.job %} From {{ item.job.original_file_name }} {% else %} {{ item.template.name }} from an API call {% endif %}

{% endcall %} {{ date_field( (item.updated_at or item.created_at)|format_datetime_short ) }} {% call field(status=item.status|format_notification_status_as_field_status, align='right') %} {% if item.status|format_notification_status_as_url %} {% endif %} {{ item.status|format_notification_status(item.template.template_type) }} {% if item.status|format_notification_status_as_url %} {% endif %} {% endcall %} {% endcall %} {% if notifications %}
{% endif %} {{ previous_next_navigation(prev_page, next_page) }} {% endblock %}