2016-03-16 16:57:10 +00:00
|
|
|
|
{% extends "withnav_template.html" %}
|
2016-04-12 15:05:27 +01:00
|
|
|
|
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading %}
|
2016-03-16 16:57:10 +00:00
|
|
|
|
{% from "components/previous-next-navigation.html" import previous_next_navigation %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-04-07 15:16:11 +01:00
|
|
|
|
Activity – GOV.UK Notify
|
2016-03-16 16:57:10 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
2016-04-07 15:16:11 +01:00
|
|
|
|
<h1 class="heading-large">Activity</h1>
|
2016-04-04 16:34:06 +01:00
|
|
|
|
<p>
|
2016-04-05 11:29:24 +01:00
|
|
|
|
<a href="{{ url_for(".view_notifications", service_id=current_service.id, page=1) }}">All messages</a>
|
2016-04-04 16:34:06 +01:00
|
|
|
|
</p>
|
|
|
|
|
|
<p>
|
2016-04-05 11:29:24 +01:00
|
|
|
|
<a href="{{ url_for(".view_notifications", service_id=current_service.id, type="sms", page=1) }}">Text messages</a> 
|
|
|
|
|
|
<a href="{{ url_for(".view_notifications", service_id=current_service.id, type="email", page=1) }}">Email messages</a>
|
2016-04-04 16:34:06 +01:00
|
|
|
|
</p>
|
|
|
|
|
|
<p>
|
2016-04-12 14:19:51 +01:00
|
|
|
|
<a href="{{ url_for(".view_notifications", service_id=current_service.id, status=['delivered'], page=1) }}">Successful messages</a> 
|
|
|
|
|
|
<a href="{{ url_for(".view_notifications", service_id=current_service.id, status=['failed'], page=1) }}">Failed messages</a>
|
2016-04-04 16:34:06 +01:00
|
|
|
|
</p>
|
2016-04-12 09:55:51 +01:00
|
|
|
|
|
2016-04-12 15:05:27 +01:00
|
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
|
notifications,
|
|
|
|
|
|
caption="Recent activity",
|
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
|
empty_message='No messages found',
|
|
|
|
|
|
field_headings=['Recipient', 'Status', 'Started'],
|
|
|
|
|
|
field_headings_visible=False
|
|
|
|
|
|
) %}
|
|
|
|
|
|
|
|
|
|
|
|
{% call field() %}
|
|
|
|
|
|
<p>
|
2016-03-16 16:57:10 +00:00
|
|
|
|
{{ item.to }}
|
2016-04-12 15:05:27 +01:00
|
|
|
|
</p>
|
|
|
|
|
|
<p class="hint">
|
2016-04-12 09:55:51 +01:00
|
|
|
|
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.template.id) }}">{{ item.template.name }}</a>
|
2016-04-12 15:05:27 +01:00
|
|
|
|
sent from
|
2016-03-16 16:57:10 +00:00
|
|
|
|
{% if item.job %}
|
2016-04-04 16:53:52 +01:00
|
|
|
|
<a href="{{ url_for(".view_job", service_id=current_service.id, job_id=item.job.id) }}">{{ item.job.original_file_name }}</a>
|
2016-04-12 15:05:27 +01:00
|
|
|
|
{% else %}
|
|
|
|
|
|
an API call
|
2016-03-16 16:57:10 +00:00
|
|
|
|
{% endif %}
|
2016-04-12 15:05:27 +01:00
|
|
|
|
</p>
|
2016-03-16 16:57:10 +00:00
|
|
|
|
{% endcall %}
|
2016-04-12 14:19:51 +01:00
|
|
|
|
|
2016-04-12 15:05:27 +01:00
|
|
|
|
{{ text_field(item.status|title) }}
|
|
|
|
|
|
|
|
|
|
|
|
{% call field(align='right') %}
|
|
|
|
|
|
{{ item.created_at|format_delta }}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
<p class="table-show-more-link">
|
|
|
|
|
|
<a href="{{ request.url }}&download=csv">Download csv</a>
|
|
|
|
|
|
</p>
|
|
|
|
|
|
{{ previous_next_navigation(prev_page, next_page) }}
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|