Skip to content

Commit

Permalink
Update content / design of Brexit notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Thorner committed Dec 31, 2020
1 parent 84635dc commit efa71d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 5 additions & 5 deletions app/presenters/content_item/brexit_notice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 3 additions & 5 deletions app/views/components/_brexit-notice.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
<% else %>
<p class="app-c-brexit-notice__text govuk-body"><%= description %></p>
<% end %>
<% if featured_link %>
<p class="app-c-brexit-notice__text govuk-body"><%= featured_link %></p>
<% end %>
<% if links.any? %>
<div class="app-c-brexit-notice__links">
<% if links.count == 1 %>
Expand All @@ -39,8 +36,9 @@
<% end %>
</div>
<% end %>


<% if featured_link %>
<p class="app-c-brexit-notice__text govuk-body"><%= featured_link %></p>
<% end %>
</div>
</section>
<% end %>

0 comments on commit efa71d6

Please sign in to comment.