remove antivirus code (email does not allow attachments via ui)

This commit is contained in:
stvnrlly
2022-12-05 16:35:46 -05:00
parent 36e0e67afc
commit 420845fac7
15 changed files with 23 additions and 47 deletions

View File

@@ -147,7 +147,7 @@
{% macro notification_status_field(notification) %}
{% set displayed_on_single_line = notification.status in ['created', 'pending', 'pending-virus-check', 'sending', 'delivered', 'accepted', 'received'] %}
{% set displayed_on_single_line = notification.status in ['created', 'pending', 'sending', 'delivered', 'accepted', 'received'] %}
{% if not notification %}
{% call field(align='right') %}{% endcall %}

View File

@@ -16,11 +16,7 @@
field_headings_visible=False
) %}
{% call row_heading() %}
{% if item.status in ('pending-virus-check', 'virus-scan-failed') %}
<span class="file-list-filename loading-indicator">Checking</span>
{% else %}
<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>
{% endif %}
<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>
<p class="file-list-hint">
{{ item.preview_of_content }}
</p>

View File

@@ -74,9 +74,7 @@
<dd class="api-notifications-item__data-value">{{ notification[key] }}</dd>
{% endif %}
{% endfor %}
{% if notification.status not in ('pending-virus-check', 'virus-scan-failed') %}
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=notification.id) }}">View {{ 1|message_count_label(notification.template.template_type, suffix='') }}</a>
{% endif %}
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=notification.id) }}">View {{ 1|message_count_label(notification.template.template_type, suffix='') }}</a>
</dl>
</div>
</details>

View File

@@ -23,7 +23,7 @@
</p>
<p class="govuk-body">
There are other pages on US Notifywhere you can get help:
There are other pages on US Notify where you can get help:
</p>
<h2 class="govuk-heading-m govuk-!-margin-bottom-1">