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.11.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.10.5 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.10.4 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.10.3 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.10.2 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.10.1 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.10.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.9.2 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.9.1 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.9.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.8.2 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.8.1 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.8.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.7.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.6.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.5.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.4.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.3.1 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.3.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
govuk_publishing_components-27.2.0 app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb