Use file list pattern for list of files

This means the page has the same appearance as other lists of stuff like
the notifications page.
This commit is contained in:
Chris Hill-Scott
2019-12-31 10:20:09 +00:00
parent fae18f3008
commit 8bcfb2fcde
2 changed files with 18 additions and 7 deletions

View File

@@ -18,10 +18,13 @@
empty_message='If you have returned letter reports they will be listed here'
) %}
{% call field() %}
<a target="_blank" class="govuk_link"
href="{{url_for('.returned_letters_report', service_id=current_service.id, reported_at=item.reported_at)}}">Returned letters reported on {{ item.reported_at | format_date}} - {{ item.returned_letter_count}} {{ message_count_label(item.returned_letter_count, 'letter', suffix='')}}</a>
<a target="_blank" class="govuk_link file-list-filename"
href="{{url_for('.returned_letters_report', service_id=current_service.id, reported_at=item.reported_at)}}">{{ item.reported_at | format_date_normal }}</a>
<p class="file-list-hint">
{{ item.returned_letter_count}} {{ message_count_label(item.returned_letter_count, 'letter', suffix='')}}
</p>
{% endcall %}
{% endcall %}
</div>
{% endblock %}
{% endblock %}