2016-09-27 15:07:40 +01:00
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
|
{% from "components/previous-next-navigation.html" import previous_next_navigation %}
|
|
|
|
|
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading, row_heading, notification_status_field %}
|
|
|
|
|
|
2017-02-14 14:21:36 +00:00
|
|
|
<div class="ajax-block-container" id='pill-selected-item'>
|
2016-09-27 15:07:40 +01:00
|
|
|
|
|
|
|
|
{% if notifications %}
|
|
|
|
|
<div class='dashboard-table'>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
notifications,
|
|
|
|
|
caption="Recent activity",
|
|
|
|
|
caption_visible=False,
|
2018-08-13 17:07:49 +01:00
|
|
|
empty_message='No messages found  (messages are kept for {} days)'.format(limit_days)|safe,
|
2016-09-27 15:07:40 +01:00
|
|
|
field_headings=['Recipient', 'Status'],
|
|
|
|
|
field_headings_visible=False
|
|
|
|
|
) %}
|
|
|
|
|
{% call row_heading() %}
|
2018-03-19 15:25:26 +00:00
|
|
|
{% if item.status in ('pending-virus-check', 'virus-scan-failed') %}
|
2020-01-02 16:35:54 +00:00
|
|
|
<span class="file-list-filename loading-indicator">Checking</span>
|
2018-03-19 15:25:26 +00:00
|
|
|
{% else %}
|
2020-07-30 16:40:25 +01:00
|
|
|
<a class="govuk-link govuk-link--no-visited-state file-list-filename" href="{{ single_notification_url(notification_id=item.id) }}">{{ item.to.splitlines()|join(', ') if item.to else '' }}</a>
|
2018-03-19 15:25:26 +00:00
|
|
|
{% endif %}
|
2017-06-24 17:12:45 +01:00
|
|
|
<p class="file-list-hint">
|
|
|
|
|
{{ item.preview_of_content }}
|
2016-09-27 15:07:40 +01:00
|
|
|
</p>
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
|
|
|
|
{{ notification_status_field(item) }}
|
|
|
|
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
{% if notifications %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2020-05-07 09:50:03 +01:00
|
|
|
{% if show_pagination %}
|
|
|
|
|
{{ previous_next_navigation(prev_page, next_page) }}
|
|
|
|
|
{% elif next_page %}
|
2020-05-06 14:30:32 +01:00
|
|
|
<p class="table-show-more-link">
|
|
|
|
|
Only showing the first 50 messages
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
2016-09-27 15:07:40 +01:00
|
|
|
|
|
|
|
|
</div>
|