mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
45 lines
1.8 KiB
HTML
45 lines
1.8 KiB
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/table.html" import list_table, field, right_aligned_field_heading %}
|
||
|
||
{% block page_title %}
|
||
Notifications activity – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">Notifications activity</h1>
|
||
<p>
|
||
<a href="{{ url_for(".view_notifications", service_id=current_service.id, job_id=job_id, page=1) }}">All messages</a>
|
||
</p>
|
||
<p>
|
||
<a href="{{ url_for(".view_notifications", service_id=current_service.id, job_id=job_id, type="sms", page=1) }}">Text messages</a> 
|
||
<a href="{{ url_for(".view_notifications", service_id=current_service.id, job_id=job_id, type="email", page=1) }}">Email messages</a>
|
||
</p>
|
||
<p>
|
||
<a href="{{ url_for(".view_notifications", service_id=current_service.id, job_id=job_id, status=['sent', 'delivered'], page=1) }}">Successful messages</a> 
|
||
<a href="{{ url_for(".view_notifications", service_id=current_service.id, job_id=job_id, status=['failed', 'complaint', 'bounce'], page=1) }}">Failed messages</a>
|
||
</p>
|
||
{% call(item, row_number) list_table(
|
||
jobs,
|
||
caption="Recent activity",
|
||
caption_visible=False,
|
||
empty_message='You haven’t sent any notifications yet',
|
||
field_headings=['Job', 'Time', 'Uploaded by', right_aligned_field_heading('Status')]
|
||
) %}
|
||
{% call field() %}
|
||
<a href="{{ url_for('.view_job', service_id=current_service.id, job_id=item.id) }}">{{ item.original_file_name }}</a>
|
||
{% endcall %}
|
||
{% call field() %}
|
||
{{ item.created_at | format_datetime}}
|
||
{% endcall %}
|
||
{% call field() %}
|
||
{{ item.created_by.name }}
|
||
{% endcall %}
|
||
{% call field(align='right') %}
|
||
{{ item.status }}
|
||
{% endcall %}
|
||
{% endcall %}
|
||
|
||
|
||
{% endblock %}
|