From d7fc7b082f1ae9f2d7a94eb3938add08d034cfe7 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 3 Oct 2017 13:17:37 +0100 Subject: [PATCH] Make trial mode message less verbose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Frontloads the ‘not’ part of the message, and makes it shorter, so it’s more likely to be read and understood. Also makes it fit better with the new ‘Can’t be used to send letters’ message. --- app/main/views/api_keys.py | 2 +- tests/app/main/views/test_api_keys.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/views/api_keys.py b/app/main/views/api_keys.py index a35b95558..c8f8b66f8 100644 --- a/app/main/views/api_keys.py +++ b/app/main/views/api_keys.py @@ -73,7 +73,7 @@ def create_api_key(service_id): if current_service['restricted']: disabled_options = [KEY_TYPE_NORMAL] option_hints[KEY_TYPE_NORMAL] = Markup( - 'This option is not available because your service is in ' + 'Not available because your service is in ' 'trial mode'.format(url_for(".using_notify")) ) if 'letter' in current_service['permissions']: diff --git a/tests/app/main/views/test_api_keys.py b/tests/app/main/views/test_api_keys.py index 1b680774b..46f69aaca 100644 --- a/tests/app/main/views/test_api_keys.py +++ b/tests/app/main/views/test_api_keys.py @@ -132,7 +132,7 @@ def test_should_show_api_keys_page( [ ( 'Live – sends to anyone ' - 'This option is not available because your service is in trial mode' + 'Not available because your service is in trial mode' ), 'Team and whitelist – limits who you can send to', 'Test – pretends to send messages',