2016-06-08 13:41:02 +01:00
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %}
2016-05-25 13:36:35 +01:00
2024-07-26 10:38:00 -04:00
< div class = "table-overflow-x-auto" >
2025-10-06 09:38:54 -04:00
< div class = 'dashboard-uploads-table ajax-block-container' >
2024-03-05 09:51:25 -05:00
{% 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() %}
2025-10-06 09:38:54 -04:00
< div class = "file-name-cell" >
< a class = "file-link usa-link" href = "{{ url_for('.view_job', service_id=current_service.id, job_id=item.id) }}" title = "{{ item.original_file_name }}" > {{ item.original_file_name }}< / a >
2024-03-05 09:51:25 -05:00
{% if item.scheduled %}
< span class = "file-list-hint-large" >
Sending {{
item.scheduled_for|format_datetime_relative
}}
< / span >
{% else %}
< span class = "file-list-hint-large" >
Sent {{
(item.scheduled_for or item.created_at)|format_datetime_relative
}}
< / span >
{% endif %}
2020-02-27 14:03:03 +00:00
2024-03-05 09:51:25 -05:00
< / div >
{% endcall %}
{% call field() %}
{% if item.scheduled %}
{% if link %}
< a class = "usa-link display-flex" href = "{{ link }}" >
{% endif %}
< span class = "big-number-smallest" >
< span class = "big-number-number" >
{% if item.notification_count is number %}
{% if currency %}
{{ "{}{:,.2f}".format(currency, item.notification_count) }}
{% else %}
{{ "{:,}".format(item.notification_count) }}
{% endif %}
2023-12-17 15:35:27 -05:00
{% else %}
2024-03-05 09:51:25 -05:00
{{ item.notification_count }}
2023-12-17 15:35:27 -05:00
{% endif %}
2024-03-05 09:51:25 -05:00
< / span >
{% if item.notification_count %}
< span class = "big-number-label" > {{ item.notification_count|message_count_label(item.template_type,suffix='waiting to send') }}< / span >
2023-12-17 15:35:27 -05:00
{% endif %}
< / span >
2024-03-05 09:51:25 -05:00
{% if link %}
< / a >
{% endif %}
{% else %}
2025-10-06 09:38:54 -04:00
< div class = "status-display" >
< span class = "status-item" >
2024-03-05 09:51:25 -05:00
{% if link %}
2025-10-06 09:38:54 -04:00
< a class = "usa-link" href = "{{ link }}" >
2023-12-17 15:35:27 -05:00
{% endif %}
2025-10-06 09:38:54 -04:00
< strong > {{ "{:,}".format(item.notifications_sending) }}< / strong > pending
2024-03-05 09:51:25 -05:00
{% if link %}
< / a >
2023-12-17 15:35:27 -05:00
{% endif %}
< / span >
2025-10-06 09:38:54 -04:00
< span class = "status-item" >
< strong > {{ "{:,}".format(item.notifications_delivered) if item.notifications_delivered is number else item.notifications_delivered }}< / strong > delivered
< / span >
< span class = "status-item" >
{% if link %}
< a class = "usa-link" href = "{{ link }}" >
{% endif %}
< strong > {{ "{:,}".format(item.notifications_failed) if item.notifications_failed is number else item.notifications_failed }}< / strong > failed
{% if link %}
< / a >
{% endif %}
< / span >
< / div >
2020-02-27 14:03:03 +00:00
2024-03-05 09:51:25 -05:00
{% endif %}
{% endcall %}
2016-06-09 15:52:10 +01:00
{% endcall %}
2024-03-05 09:51:25 -05:00
< / div >
2016-06-09 15:52:10 +01:00
< / div >