From fdbdee906cc705496e4db725da0678056f6fafc4 Mon Sep 17 00:00:00 2001 From: mickael e Date: Tue, 9 Apr 2019 10:15:10 -0400 Subject: [PATCH] Update source interface message when disabled See https://github.com/freedomofpress/securedrop/issues/4305#issuecomment-481057441 --- securedrop/source_templates/disabled.html | 4 ++-- securedrop/tests/test_source.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/securedrop/source_templates/disabled.html b/securedrop/source_templates/disabled.html index efeda11ca13..4fc753fdbcb 100644 --- a/securedrop/source_templates/disabled.html +++ b/securedrop/source_templates/disabled.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block body %} -

{{ gettext('Submissions Disabled') }}

+

{{ gettext("We're sorry, our SecureDrop is currently offline.") }}

-

{{ gettext('This SecureDrop instance is currently unavailable. Please check back later.') }}

+

{{ gettext("Please try again later. Check our website for more information.") }}

{% endblock %} diff --git a/securedrop/tests/test_source.py b/securedrop/tests/test_source.py index 5f7a6f26590..d93cc82ac99 100644 --- a/securedrop/tests/test_source.py +++ b/securedrop/tests/test_source.py @@ -729,7 +729,7 @@ def test_source_disabled_when_trusty_is_eol(config, source_app): resp = app.get(url_for(endpoint)) assert resp.status_code == 200 text = resp.data.decode('utf-8') - assert 'Submissions Disabled' in text + assert "We're sorry, our SecureDrop is currently offline." in text @mock.patch('platform.linux_distribution', side_effect=fake_trusty) @@ -741,7 +741,7 @@ def test_source_not_disabled_before_trusty_eol(config, source_app): resp = app.get(url_for(endpoint), follow_redirects=True) assert resp.status_code == 200 text = resp.data.decode('utf-8') - assert 'Submissions Disabled' not in text + assert "We're sorry, our SecureDrop is currently offline." not in text @mock.patch('platform.linux_distribution', side_effect=fake_xenial) @@ -753,4 +753,4 @@ def test_source_not_disabled_xenial(config, source_app): resp = app.get(url_for(endpoint), follow_redirects=True) assert resp.status_code == 200 text = resp.data.decode('utf-8') - assert 'Submissions Disabled' not in text + assert "We're sorry, our SecureDrop is currently offline." not in text