Skip to content

Commit

Permalink
Merge pull request #2115 from alphagov/transition-brexit
Browse files Browse the repository at this point in the history
Add alternate Brexit callout text and link
  • Loading branch information
sihugh authored Jun 4, 2021
2 parents 2985ef4 + 9002d1a commit 2ab27e2
Show file tree
Hide file tree
Showing 70 changed files with 291 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
useful summary for people upgrading their application, not a replication
of the commit log.

## Unreleased

* Add alternate Brexit callout text ([PR #21XX](https://github.com/alphagov/govuk_publishing_components/pull/21XX))

## 24.13.1

* Rename /transition to /brexit ([PR #2112](https://github.com/alphagov/govuk_publishing_components/pull/2112))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
<% end %>

<% if navigation.show_brexit_cta? || navigation.show_brexit_related_links? %>
<%= render 'govuk_publishing_components/components/contextual_sidebar/brexit_cta' %>
<%= render 'govuk_publishing_components/components/contextual_sidebar/brexit_cta', content_item: content_item %>
<% end %>
</div>
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<% shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) %>
<% link_text = t("components.related_navigation.transition.link_text") %>
<% link_path = t("components.related_navigation.transition.link_path") %>
<% cta_helper = GovukPublishingComponents::Presenters::BrexitCtaHelper.new(content_item) %>
<%
title = t(cta_helper.title_key)
link_text = t(cta_helper.link_text_key)
link_path = t(cta_helper.link_path_key)
lang = shared_helper.t_locale(cta_helper.title_key)
%>

<% data_attributes = {
"module": "gem-track-click",
Expand All @@ -12,12 +17,12 @@
} %>

<%= tag.div class: "gem-c-contextual-sidebar__brexit-cta" do %>
<%= tag.h2 t("components.related_navigation.transition.title"), class: "gem-c-contextual-sidebar__brexit-heading govuk-heading-s" %>
<%= tag.h2 title, class: "gem-c-contextual-sidebar__brexit-heading govuk-heading-s" %>
<%= tag.p class: "gem-c-contextual-sidebar__brexit-text govuk-body" do %>
<%= link_to link_text,
link_path,
class: "govuk-link",
data: data_attributes,
lang: shared_helper.t_locale("components.related_navigation.transition.title") %>
lang: lang %>
<% end %>
<% end %>
3 changes: 3 additions & 0 deletions config/locales/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ ar:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/az.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ az:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/be.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ be:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/bg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ bg:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/bn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ bn:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ cs:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/cy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ cy:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path: "/brexit.cy"
link_text: Gwiriwch beth sydd angen i chi ei wneud
title: Brexit
Expand Down
3 changes: 3 additions & 0 deletions config/locales/da.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ da:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ de:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/dr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ dr:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ el:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ en:
link_path: "/brexit"
link_text: Check what you need to do
title: Brexit
hub_page_link_path: "/transition-check/questions"
hub_page_link_text: Get a personalised list of actions
hub_page_title: Brexit checker
world_locations: World locations
search_box:
input_title: Search
Expand Down
3 changes: 3 additions & 0 deletions config/locales/es-419.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ es-419:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ es:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/et.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ et:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/fa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ fa:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/fi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ fi:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ fr:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/gd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ gd:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/gu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ gu:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/he.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ he:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/hi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ hi:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/hr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ hr:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/hu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ hu:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/hy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ hy:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ id:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/is.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ is:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ it:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ ja:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ ka:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/kk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ kk:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ ko:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/lt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ lt:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/lv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ lv:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ ms:
topical_events:
topics:
transition:
hub_page_link_path:
hub_page_link_text:
hub_page_title:
link_path:
link_text:
title:
Expand Down
Loading

0 comments on commit 2ab27e2

Please sign in to comment.