2016-05-03 13:25:22 +01:00
|
|
|
|
{% from "components/table.html" import list_table, field, hidden_field_heading, right_aligned_field_heading %}
|
|
|
|
|
|
|
|
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-08-05 09:40:21 +01:00
|
|
|
|
Previous weeks – GOV.UK Notify
|
2016-05-03 13:25:22 +01:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
|
|
|
|
|
<h1 class="heading-large">
|
|
|
|
|
|
Previous weeks
|
|
|
|
|
|
</h1>
|
|
|
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
|
days,
|
|
|
|
|
|
caption="Daily",
|
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
|
empty_message='No data found',
|
|
|
|
|
|
field_headings=[
|
|
|
|
|
|
hidden_field_heading('Day'),
|
|
|
|
|
|
right_aligned_field_heading('Emails'),
|
|
|
|
|
|
right_aligned_field_heading('Failure rate'),
|
|
|
|
|
|
right_aligned_field_heading('Text messages'),
|
|
|
|
|
|
right_aligned_field_heading('Failure rate')
|
|
|
|
|
|
]
|
|
|
|
|
|
) %}
|
|
|
|
|
|
{% call field() %}
|
|
|
|
|
|
{{ item.week_start|format_date_short }} to
|
|
|
|
|
|
{% if item.week_end_datetime > now %}
|
|
|
|
|
|
today
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
{{ item.week_end|format_date_short }}
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(align='right') %}
|
2016-07-28 16:23:22 +01:00
|
|
|
|
{{ item.email.requested }}
|
2016-05-03 13:25:22 +01:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(align='right') %}
|
2016-07-28 16:23:22 +01:00
|
|
|
|
{{ item.email.failure_rate }}%
|
2016-05-03 13:25:22 +01:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(align='right') %}
|
2016-07-28 16:23:22 +01:00
|
|
|
|
{{ item.sms.requested }}
|
2016-05-03 13:25:22 +01:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(align='right') %}
|
2016-07-28 16:23:22 +01:00
|
|
|
|
{{ item.sms.failure_rate }}%
|
2016-05-03 13:25:22 +01:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|