Merge pull request #3240 from alphagov/recipient-address

Show the first line of the address from the to field.
This commit is contained in:
Rebecca Law
2020-01-13 14:29:33 +00:00
committed by GitHub
12 changed files with 87 additions and 62 deletions

View File

@@ -17,9 +17,9 @@
) %}
{% call row_heading() %}
{% if item.status in ('pending-virus-check', 'virus-scan-failed') %}
<span class="file-list-filename">{{ item.to }}</span>
<span class="file-list-filename loading-indicator">Checking</span>
{% else %}
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id) }}">{{ item.to }}</a>
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id) }}">{{ item.to.splitlines()[0].lstrip().rstrip(' ,') if item.to else '' }}</a>
{% endif %}
<p class="file-list-hint">
{{ item.preview_of_content }}