From a4ba99b7489642ae2a7ccdfbaf41c0a00392794d Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Mon, 27 Jan 2020 11:46:09 +0000 Subject: [PATCH] Redo `send_messages` as `create_and_send_messages` Reverts changes in the following commits: - 1e8ba88b4d4aedf68fbe037a73eb369754bd1631 - 133a62022c15b764ef01614e63563fe21e25c635 - b76066dd766d771c36cb9079dfaad51300fbdd3a These changes `main.create_and_send_messages` to `main.send_messages` but this name was already taken. Further details on Github: https://github.com/alphagov/notifications-admin/pull/3213#pullrequestreview-348548476 --- app/main/views/index.py | 4 ++-- app/main/views/sub_navigation_dictionaries.py | 2 +- app/templates/views/guidance/index.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/main/views/index.py b/app/main/views/index.py index 1688caa14..944650e57 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -357,9 +357,9 @@ def branding_and_customisation(): @main.route('/using-notify/guidance/create-and-send-messages') -def send_messages(): +def create_and_send_messages(): return render_template( - 'views/guidance/send-messages.html', + 'views/guidance/create-and-send-messages.html', navigation_links=using_notify_nav(), ) diff --git a/app/main/views/sub_navigation_dictionaries.py b/app/main/views/sub_navigation_dictionaries.py index bf5394d1d..8aefcea62 100644 --- a/app/main/views/sub_navigation_dictionaries.py +++ b/app/main/views/sub_navigation_dictionaries.py @@ -66,7 +66,7 @@ def using_notify_nav(): "sub_navigation_items": [ { "name": "Send messages", - "link": "main.send_messages", + "link": "main.create_and_send_messages", }, { "name": "Formatting", diff --git a/app/templates/views/guidance/index.html b/app/templates/views/guidance/index.html index 2784112cc..0f7132f35 100644 --- a/app/templates/views/guidance/index.html +++ b/app/templates/views/guidance/index.html @@ -15,7 +15,7 @@

It explains how to: