mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-29 02:34:02 -04:00
There is really no point to downloading the CSV file of delivery info when you’re in the tour. It’s just distracting at this point.
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
{% from "components/table.html" import list_table, field, right_aligned_field_heading, date_field, row_heading %}
|
|
|
|
{% if notifications %}
|
|
<div class="dashboard-table">
|
|
{% endif %}
|
|
|
|
{% if notifications and request.args.get('help', '0') == '0' %}
|
|
<p class="bottom-gutter">
|
|
<a href="{{ url_for('.view_job_csv', service_id=current_service.id, job_id=job.id, status=status) }}" download="download" class="heading-small">Download as a CSV file</a>
|
|
 
|
|
Delivery information is available for 7 days
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% call(item, row_number) list_table(
|
|
notifications,
|
|
caption=uploaded_file_name,
|
|
caption_visible=False,
|
|
empty_message="No messages to show",
|
|
field_headings=[
|
|
'Recipient',
|
|
'Time',
|
|
'Status'
|
|
],
|
|
field_headings_visible=False
|
|
) %}
|
|
{% call row_heading() %}
|
|
{{ item.to }}
|
|
{% endcall %}
|
|
{{ date_field(
|
|
(item.updated_at or item.created_at)|format_datetime_short
|
|
) }}
|
|
{% call field(
|
|
align='right',
|
|
status=item.status|format_notification_status_as_field_status
|
|
) %}
|
|
{{ item.status|format_notification_status(item.template.template_type) }}
|
|
{% endcall %}
|
|
{% endcall %}
|
|
|
|
{% if notifications %}
|
|
</div>
|
|
{% endif %}
|