mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-24 09:21:06 -04:00
Precompiled letters can now have two additional states: * pending-virus-check * virus-scan-failed Both new states should show in the notifications dashboard, and virus-scan-failed should appear as an error state, with a descriptive message. You should not be able to preview a letter in one of the two new states, so the preview link has been removed for precompiled letters in these states.
39 lines
1.3 KiB
HTML
39 lines
1.3 KiB
HTML
{% 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 %}
|
|
|
|
<div class="ajax-block-container" id='pill-selected-item'>
|
|
|
|
{% if notifications %}
|
|
<div class='dashboard-table'>
|
|
{% endif %}
|
|
{% call(item, row_number) list_table(
|
|
notifications,
|
|
caption="Recent activity",
|
|
caption_visible=False,
|
|
empty_message='No messages found',
|
|
field_headings=['Recipient', 'Status'],
|
|
field_headings_visible=False
|
|
) %}
|
|
{% call row_heading() %}
|
|
{% if item.status in ('pending-virus-check', 'virus-scan-failed') %}
|
|
<span class="file-list-filename">{{ item.to }}</span>
|
|
{% else %}
|
|
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id) }}">{{ item.to }}</a>
|
|
{% endif %}
|
|
<p class="file-list-hint">
|
|
{{ item.preview_of_content }}
|
|
</p>
|
|
{% endcall %}
|
|
|
|
{{ notification_status_field(item) }}
|
|
|
|
{% endcall %}
|
|
{% if notifications %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{{ previous_next_navigation(prev_page, next_page) }}
|
|
|
|
</div>
|