From efa71d6e4fa8e567be00dd0b4b9993ca916eb193 Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Thu, 31 Dec 2020 12:00:47 +0000 Subject: [PATCH] Update content / design of Brexit notice --- app/presenters/content_item/brexit_notice.rb | 10 +++++----- app/views/components/_brexit-notice.html.erb | 8 +++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/app/presenters/content_item/brexit_notice.rb b/app/presenters/content_item/brexit_notice.rb index 851acf2a8..d68284d7d 100644 --- a/app/presenters/content_item/brexit_notice.rb +++ b/app/presenters/content_item/brexit_notice.rb @@ -23,15 +23,15 @@ def brexit_notice_links end def brexit_notice_title - "Brexit transition: new rules for 2021" + "This guidance has been withdrawn" end def brexit_notice_description - "The UK has agreed a deal with the EU. This page tells you the new rules from 1 January 2021." + "The Brexit transition period has ended and new rules now apply. This page has been withdrawn because it’s out of date. " end def brexit_notice_link_intro - "For current information, read: " + "For current information about what you need to do, read: " end def brexit_landing_page_cta @@ -42,12 +42,12 @@ def brexit_landing_page_cta "track-label": "Get your personalised list of actions", } - featured_link = view_context.link_to("get a personalised list of actions", + featured_link = view_context.link_to("other actions you need to take", "/transition", data: data_attributes, class: "govuk-link") - ("Use the Brexit checker to " + featured_link + " and sign up for email updates.").html_safe + ("You can also get a personalised list of the " + featured_link + ".").html_safe end def brexit_links diff --git a/app/views/components/_brexit-notice.html.erb b/app/views/components/_brexit-notice.html.erb index c9d6ae536..7ef9ed2d6 100644 --- a/app/views/components/_brexit-notice.html.erb +++ b/app/views/components/_brexit-notice.html.erb @@ -19,9 +19,6 @@ <% else %>

<%= description %>

<% end %> - <% if featured_link %> -

<%= featured_link %>

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

<%= featured_link %>

+ <% end %> <% end %>