Sha256: e1ba3733013c544b3f8a33a9c87aeb9f90ac0937ef8b24f5d184cb5a300a18fb

Contents?: true

Size: 966 Bytes

Versions: 58

Compression:

Stored size: 966 Bytes

Contents

<% shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) %>
<% 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",
  "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

58 entries across 58 versions & 1 rubygems

Version Path
govuk_publishing_components-27.1.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.0.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-26.0.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.7.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.6.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.5.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.4.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.3.1 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.3.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.2.3 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.2.2 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.2.1 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.2.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.1.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-25.0.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-24.21.1 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-24.21.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-24.20.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-24.19.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-24.18.5 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb