2016-03-16 16:57:10 +00:00
|
|
|
|
{% extends "withnav_template.html" %}
|
2016-06-08 13:41:02 +01:00
|
|
|
|
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading, row_heading, date_field %}
|
2016-03-16 16:57:10 +00:00
|
|
|
|
{% from "components/previous-next-navigation.html" import previous_next_navigation %}
|
2016-04-13 12:50:28 +01:00
|
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
|
|
{% from "components/pill.html" import pill %}
|
2016-06-07 16:35:03 +01:00
|
|
|
|
{% from "components/message-count-label.html" import message_count_label, recipient_count_label %}
|
2016-03-16 16:57:10 +00:00
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-06-07 11:17:33 +01:00
|
|
|
|
{{ message_count_label(99, message_type, suffix='') | capitalize }} – GOV.UK Notify
|
2016-03-16 16:57:10 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
2016-04-13 12:50:28 +01:00
|
|
|
|
<h1 class="heading-large">
|
|
|
|
|
|
|
2016-06-07 11:17:33 +01:00
|
|
|
|
<span class="visually-hidden">
|
2016-08-05 10:18:27 +01:00
|
|
|
|
{%- if status != 'delivered,failed' -%}
|
2016-06-08 15:15:59 +01:00
|
|
|
|
{%- for label, option, _, _ in status_filters -%}
|
2016-08-05 10:18:27 +01:00
|
|
|
|
{%- if status == option -%}{{label}} {% endif -%}
|
2016-04-29 15:24:48 +01:00
|
|
|
|
{%- endfor -%}
|
|
|
|
|
|
{%- endif -%}
|
2016-06-07 11:17:33 +01:00
|
|
|
|
</span>
|
2016-04-13 12:50:28 +01:00
|
|
|
|
|
2016-06-07 11:17:33 +01:00
|
|
|
|
{{- message_count_label(99, message_type, suffix='') | capitalize }}
|
2016-04-13 12:50:28 +01:00
|
|
|
|
|
|
|
|
|
|
</h1>
|
2016-04-28 15:50:05 +01:00
|
|
|
|
|
2016-06-07 11:17:33 +01:00
|
|
|
|
<div class='bottom-gutter'>
|
|
|
|
|
|
{{ pill(
|
|
|
|
|
|
'Status',
|
|
|
|
|
|
status_filters,
|
2016-08-05 10:18:27 +01:00
|
|
|
|
status
|
2016-06-07 11:17:33 +01:00
|
|
|
|
) }}
|
2016-04-13 12:50:28 +01:00
|
|
|
|
</div>
|
2016-04-12 09:55:51 +01:00
|
|
|
|
|
2016-04-13 14:18:56 +01:00
|
|
|
|
{% if notifications %}
|
2016-08-09 10:39:57 +01:00
|
|
|
|
<p class="bottom-gutter">
|
2016-08-02 16:51:31 +01:00
|
|
|
|
<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>
|
2016-04-29 15:30:44 +01:00
|
|
|
|
 
|
2016-08-02 16:51:31 +01:00
|
|
|
|
Data available for 7 days
|
2016-04-13 14:18:56 +01:00
|
|
|
|
</p>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
2016-06-15 09:56:45 +01:00
|
|
|
|
|
|
|
|
|
|
{% if notifications %}
|
|
|
|
|
|
<div class='dashboard-table'>
|
|
|
|
|
|
{% endif %}
|
2016-06-09 15:52:10 +01:00
|
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
|
notifications,
|
|
|
|
|
|
caption="Recent activity",
|
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
|
empty_message='No messages found',
|
|
|
|
|
|
field_headings=['Recipient', 'Started', 'Status'],
|
|
|
|
|
|
field_headings_visible=False
|
|
|
|
|
|
) %}
|
2016-04-12 15:05:27 +01:00
|
|
|
|
|
2016-06-09 15:52:10 +01:00
|
|
|
|
{% call row_heading() %}
|
|
|
|
|
|
<p>
|
|
|
|
|
|
{{ item.to }}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p class="hint">
|
|
|
|
|
|
{% if item.job %}
|
|
|
|
|
|
From <a href="{{ url_for(".view_job", service_id=current_service.id, job_id=item.job.id) }}">{{ item.job.original_file_name }}</a>
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
<a href="{{ url_for('.view_template_version', service_id=current_service.id, template_id=item.template.id, version=item.template_version) }}">{{ item.template.name }}</a>
|
|
|
|
|
|
from an API call
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
{% endcall %}
|
2016-04-12 14:19:51 +01:00
|
|
|
|
|
2016-06-09 15:52:10 +01:00
|
|
|
|
{{ date_field(
|
|
|
|
|
|
(item.updated_at or item.created_at)|format_datetime_short
|
|
|
|
|
|
) }}
|
2016-04-12 15:05:27 +01:00
|
|
|
|
|
2016-06-09 15:52:10 +01:00
|
|
|
|
{% call field(status=item.status|format_notification_status_as_field_status, align='right') %}
|
2016-07-11 13:53:55 +01:00
|
|
|
|
{% if item.status|format_notification_status_as_url %}
|
|
|
|
|
|
<a href="{{ item.status|format_notification_status_as_url }}">
|
|
|
|
|
|
{% endif %}
|
2016-06-09 15:52:10 +01:00
|
|
|
|
{{ item.status|format_notification_status(item.template.template_type) }}
|
2016-07-11 13:53:55 +01:00
|
|
|
|
{% if item.status|format_notification_status_as_url %}
|
|
|
|
|
|
</a>
|
|
|
|
|
|
{% endif %}
|
2016-06-09 15:52:10 +01:00
|
|
|
|
{% endcall %}
|
2016-06-07 16:35:03 +01:00
|
|
|
|
|
2016-06-09 15:52:10 +01:00
|
|
|
|
{% endcall %}
|
2016-06-15 09:56:45 +01:00
|
|
|
|
{% if notifications %}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
{% endif %}
|
2016-04-13 14:18:56 +01:00
|
|
|
|
|
2016-04-12 15:05:27 +01:00
|
|
|
|
{{ previous_next_navigation(prev_page, next_page) }}
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|