2016-06-09 10:25:52 +01:00
|
|
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading, date_field, row_heading %}
|
2016-03-02 17:36:20 +00:00
|
|
|
|
2016-06-28 09:21:46 +01:00
|
|
|
{% if notifications %}
|
|
|
|
|
<div class="dashboard-table">
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2016-07-05 11:39:07 +01:00
|
|
|
{% if notifications and not help %}
|
2016-06-13 14:13:23 +01:00
|
|
|
<p class="bottom-gutter">
|
2016-07-18 09:04:43 +01:00
|
|
|
<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>
|
2016-06-13 14:13:23 +01:00
|
|
|
 
|
2016-07-18 08:39:10 +01:00
|
|
|
<span id="time-left">Available for 7 days</span>
|
2016-06-13 14:13:23 +01:00
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2016-06-09 11:26:45 +01:00
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
notifications,
|
|
|
|
|
caption=uploaded_file_name,
|
|
|
|
|
caption_visible=False,
|
2016-06-08 16:34:26 +01:00
|
|
|
empty_message="No messages to show",
|
2016-06-09 11:26:45 +01:00
|
|
|
field_headings=[
|
|
|
|
|
'Recipient',
|
|
|
|
|
'Time',
|
|
|
|
|
'Status'
|
|
|
|
|
],
|
|
|
|
|
field_headings_visible=False
|
|
|
|
|
) %}
|
|
|
|
|
{% call row_heading() %}
|
|
|
|
|
{{ item.to }}
|
2016-04-27 09:28:42 +01:00
|
|
|
{% endcall %}
|
2016-06-09 11:26:45 +01:00
|
|
|
{{ 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
|
|
|
|
|
) %}
|
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 11:26:45 +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 11:26:45 +01:00
|
|
|
{% endcall %}
|
|
|
|
|
{% endcall %}
|
2016-06-28 09:21:46 +01:00
|
|
|
|
|
|
|
|
{% if notifications %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|