{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %}
{% call(item, row_number) list_table( jobs, caption="Recent files uploaded", caption_visible=False, empty_message=( 'You have not uploaded any files yet.' ), field_headings=[ 'File', 'Status' ], field_headings_visible=False ) %} {% call row_heading() %}
{{ item.original_file_name }} {% if item.scheduled %} Sending {{ item.scheduled_for|format_datetime_relative }} {% else %} Sent {{ (item.scheduled_for or item.created_at)|format_datetime_relative }} {% endif %}
{% endcall %} {% call field() %} {% if item.scheduled %} {% if link %} {% endif %} {% if item.notification_count is number %} {% if currency %} {{ "{}{:,.2f}".format(currency, item.notification_count) }} {% else %} {{ "{:,}".format(item.notification_count) }} {% endif %} {% else %} {{ item.notification_count }} {% endif %} {% if item.notification_count %} {{ item.notification_count|message_count_label(item.template_type,suffix='waiting to send') }} {% endif %} {% if link %} {% endif %} {% else %}
{% if item.notifications_delivered is number %} {{ "{:,}".format(item.notifications_delivered) }} {% else %} {{ item.notifications_delivered }} {% endif %} delivered
{% endif %} {% endcall %} {% endcall %}