{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, notification_status_field %} {% from "components/page-footer.html" import page_footer %} {% from "components/form.html" import form_wrapper %}
{% if job.job_status == 'scheduled' %}

Sending {{ template.name }} {{ job.scheduled_for|format_datetime_relative }}

{% else %} {% if notifications %}
{% endif %} {% if template.template_type == 'letter' %}
{% endif %} {% if percentage_complete < 100 %}

Report is {{ "{:.0f}%".format(percentage_complete * 0.99) }} complete…

{% elif notifications %}

Download this report{{ time_left }}

{% endif %} {% if template.template_type == 'letter' %}
{% endif %} {% call(item, row_number) list_table( notifications, caption=uploaded_file_name, caption_visible=False, empty_message="No messages to show", field_headings=[ 'Recipient', 'Status' ], field_headings_visible=False ) %} {% call row_heading() %} {{ item.to }}

{{ item.preview_of_content }}

{% endcall %} {{ notification_status_field(item) }} {% endcall %} {% if more_than_one_page %} {% endif %} {% if notifications %}
{% endif %} {% endif %}