Sha256: 3b0343bc0b4403cf2fa1364a5fad1a59b10e78fda26acae4ada8c4ce28524cf4

Contents?: true

Size: 1.07 KB

Versions: 54

Compression:

Stored size: 1.07 KB

Contents

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

<%= tag.div class: "gem-c-contextual-sidebar__cta gem-c-contextual-sidebar__cta--ukraine", data: { module: "gem-track-click" } do %>
  <%= tag.h2 title, class: "gem-c-contextual-sidebar__heading govuk-heading-s" %>
  <%= tag.ul class: "gem-c-contextual-sidebar__list" do %>
    <% t("components.related_navigation.ukraine.links").each do |link| %>
      <%= tag.li class: "gem-c-contextual-sidebar__text govuk-body" do %>
        <%= link_to link[:label],
          link[:href],
          class: "govuk-link",
          data: {
            "track-category": "relatedLinkClicked",
            "track-action": "1.0 Invasion of Ukraine",
            "track-label": link[:href],
            "track-dimension": link[:label],
            "track-dimension-index": "29",
          },
          lang: lang %>
      <% end %>
    <% end %>
  <% end %>    
<% end %>

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
govuk_publishing_components-34.9.1 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.9.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.8.1 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.8.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.7.1 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.7.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.6.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.5.1 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.5.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.4.2 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.4.1 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.4.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.3.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.2.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.1.3 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.1.2 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.1.1 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.1.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-34.0.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb
govuk_publishing_components-33.1.0 app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb