Skip to content

Commit

Permalink
Update source interface message when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
emkll committed Apr 9, 2019
1 parent 659574a commit fdbdee9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions securedrop/source_templates/disabled.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block body %}
<h1>{{ gettext('Submissions Disabled') }}</h1>
<h1>{{ gettext("We're sorry, our SecureDrop is currently offline.") }}</h1>

<p>{{ gettext('This SecureDrop instance is currently unavailable. Please check back later.') }}</p>
<p>{{ gettext("Please try again later. Check our website for more information.") }}</p>

{% endblock %}
6 changes: 3 additions & 3 deletions securedrop/tests/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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

0 comments on commit fdbdee9

Please sign in to comment.