{% extends "withnav_template.html" %} {% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading %} {% 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 %} {% 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 %} {% call(item, row_number) list_table( notifications, caption="Recent activity", caption_visible=False, empty_message='No messages found', field_headings=['Recipient', 'Status', 'Started'], field_headings_visible=False ) %} {% call field() %}

{{ item.to }}

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

{% endcall %} {{ text_field(item.status|format_notification_status) }} {% call field(align='right') %} {{ (item.updated_at or item.created_at)|format_datetime_short }} {% endcall %} {% endcall %} {{ previous_next_navigation(prev_page, next_page) }} {% endblock %}