From 1e49a56ee485bbc7419665daad95a619b56ff35f Mon Sep 17 00:00:00 2001 From: Rosa Fox Date: Thu, 24 Dec 2020 11:03:29 +0000 Subject: [PATCH] Update transition call out box as a result of a deal with the EU --- app/presenters/content_item/no_deal_notice.rb | 14 +++++++------- app/views/components/_header-notice.html.erb | 7 ++++--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/presenters/content_item/no_deal_notice.rb b/app/presenters/content_item/no_deal_notice.rb index da514ebc0..f6b0220fb 100644 --- a/app/presenters/content_item/no_deal_notice.rb +++ b/app/presenters/content_item/no_deal_notice.rb @@ -23,12 +23,12 @@ def no_deal_notice_links end def no_deal_notice_title - "New rules for January 2021" + "Brexit transition: new rules for 2021" end def no_deal_notice_description - ["The UK has left the EU, and the transition period after Brexit comes to an end this year.", - "This page tells you what you'll need to do from 1 January 2021. It will be updated if anything changes."] + ["The UK has left the EU. This page tells you the new rules from 1 January 2021.", + "It will be updated if there’s new information about the UK’s deal with the EU that affects what you need to do."] end def no_deal_notice_link_intro @@ -40,13 +40,13 @@ def no_deal_landing_page_cta "module": "track-click", "track-category": "no_deal_notice", "track-action": "/transition", - "track-label": "the transition period", + "track-label": "Get your personalised list of actions", } - featured_link = view_context.link_to("the transition period", "/transition", data: data_attributes, class: "govuk-link") - featured_link_intro = no_deal_notice_links.any? ? "You can also read about" : "Check what else you need to do during" + featured_link = view_context.link_to("Get your personalised list of actions", "/transition", data: data_attributes, class: "govuk-link") + featured_link_text = " and subscribe to email updates to find out when things change." - (featured_link_intro + " " + featured_link + ".").html_safe + (featured_link + featured_link_text).html_safe end def no_deal_links diff --git a/app/views/components/_header-notice.html.erb b/app/views/components/_header-notice.html.erb index ecccc5d3c..8b35a0893 100644 --- a/app/views/components/_header-notice.html.erb +++ b/app/views/components/_header-notice.html.erb @@ -19,6 +19,9 @@ <% else %>

<%= description %>

<% end %> + <% if featured_link %> +

<%= featured_link %>

+ <% end %> <% if links.any? %> <% end %> - <% if featured_link %> -

<%= featured_link %>

- <% end %> + <% end %>