Remove line about contact lists from uploads

This line doesn’t make sense now that you can upload a contact list in
advance of having a template.
This commit is contained in:
Chris Hill-Scott
2020-03-26 17:17:11 +00:00
parent 8a093fd34c
commit 7582b8face
2 changed files with 4 additions and 11 deletions

View File

@@ -15,14 +15,9 @@
<p class="govuk-body">
You have not uploaded any files recently.
</p>
{% if current_user.has_permissions('send_messages') %}
{% if current_service.has_permission('letter') %}
<p class="govuk-body">
Upload a letter and Notify will print, pack and post it for you.
</p>
{% endif %}
{% if current_user.has_permissions('send_messages') and current_service.has_permission('letter')%}
<p class="govuk-body">
To upload a list of contact details, first <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.choose_template', service_id=current_service.id) }}">choose a template</a>.
Upload a letter and Notify will print, pack and post it for you.
</p>
{% endif %}
{% endif %}

View File

@@ -66,13 +66,11 @@ def test_all_users_have_upload_contact_list(
@pytest.mark.parametrize('extra_permissions, expected_empty_message', (
([], (
'You have not uploaded any files recently. '
'To upload a list of contact details, first choose a template.'
'You have not uploaded any files recently.'
)),
(['letter'], (
'You have not uploaded any files recently. '
'Upload a letter and Notify will print, pack and post it for you. '
'To upload a list of contact details, first choose a template.'
'Upload a letter and Notify will print, pack and post it for you.'
)),
))
def test_get_upload_hub_with_no_uploads(