From ca9fe6c8f659fd034ccb90c436fe34b12f7000c9 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 13 Jul 2018 16:13:24 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Rename=20=E2=80=98Send=20a=20message?= =?UTF-8?q?=E2=80=99=20to=20=E2=80=98Templates=E2=80=99=20in=20basic=20vie?= =?UTF-8?q?w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From Karl: > Templates – this should be consistent with Admin view. Users may > switch from Basic to Admin view (or vice versa), they will also > interact with users who have a different view or permissions to them. > Neither should have to learn new interfaces and language if possible. > ‘Send a message’ was a nice, active label – but Notify options aren’t > usually actions. If we’re going to change this we should be consistent > across both Admin and Basic views. > For the same reason, I have rejected ‘see’, ‘search’ and ‘view sent > messages’. It will be interesting to see in user testing whether users > read ‘sent messages’ as ‘send messages’. --- app/main/views/templates.py | 6 ------ app/templates/main_nav.html | 2 +- app/templates/views/templates/choose.html | 2 ++ tests/app/main/views/test_accept_invite.py | 2 +- tests/app/main/views/test_service_settings.py | 2 +- tests/app/main/views/test_templates.py | 4 ++-- tests/app/test_navigation.py | 2 +- 7 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app/main/views/templates.py b/app/main/views/templates.py index b2e36a94d..1029b5fd8 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -140,14 +140,8 @@ def choose_template(service_id, template_type='all'): ) ] - if current_user.has_permissions('view_activity'): - page_title = 'Templates' - else: - page_title = 'Choose a template' - return render_template( 'views/templates/choose.html', - page_title=page_title, templates=templates_on_page, show_search_box=(len(templates_on_page) > 7), show_template_nav=has_multiple_template_types and (len(templates) > 2), diff --git a/app/templates/main_nav.html b/app/templates/main_nav.html index 5ff2dac9f..72e52cf48 100644 --- a/app/templates/main_nav.html +++ b/app/templates/main_nav.html @@ -20,7 +20,7 @@ {% else %}