Sha256: 8313b2faf38ff5b2a1501496e82ad30dc6e17440b16b382475b17a9933ac44b6

Contents?: true

Size: 986 Bytes

Versions: 9

Compression:

Stored size: 986 Bytes

Contents

<% shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) %>
<%
  title = t("components.related_navigation.transition.title")
  link_text = t("components.related_navigation.transition.link_text")
  link_path = t("components.related_navigation.transition.link_path")
  lang = shared_helper.t_locale("components.related_navigation.transition.title")
%>

<% data_attributes = {
  "module": "gem-track-click",
  "track-category": "relatedLinkClicked",
  "track-action": "1.0 Transition",
  "track-label": link_path,
  "track-dimension": link_text,
  "track-dimension-index": "29",
} %>

<%= tag.div class: "gem-c-contextual-sidebar__brexit-cta" do %>
  <%= 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: lang %>
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
govuk_publishing_components-27.18.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.17.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.16.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.15.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.14.2 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.14.1 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.14.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.13.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.12.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb