{% extends "withnav_template.html" %} {% from "components/table.html" import list_table, field, right_aligned_field_heading %} {% from "components/big-number.html" import big_number %} {% from "components/banner.html" import banner %} {% from "components/sms-message.html" import sms_message %} {% from "components/email-message.html" import email_message %} {% block page_title %} {{ uploaded_file_name }} – GOV.UK Notify {% endblock %} {% block maincolumn_content %}

{{ uploaded_file_name }}

{% if 'sms' == template.template_type %}
{{ sms_message( template.formatted_as_markup, )}}
{% elif 'email' == template.template_type %} {{ email_message( template.subject, template, from_address='{}@notifications.service.gov.uk'.format(service.email_from), from_name=from_name )}} {% endif %} {% if finished_at %}

Finished {{ finished_at|format_datetime }}

{% else %}

Started {{ uploaded_at|format_datetime }}

{% endif %} {% if notifications %} {% call(item) list_table( notifications, caption=uploaded_file_name, caption_visible=False, empty_message="Messages go here", field_headings=[ 'Recipient', right_aligned_field_heading('Status') ] ) %} {% call field() %} {{ item.to }} {% endcall %} {% call field( align='right', status='error' if item.status == 'Failed' else 'default' ) %} {{ item.status|title }} at {{ item.sent_at|format_time }} {% endcall %} {% endcall %} {% else %}

Refresh

{% endif %} {% endblock %}