Sha256: b9e28e1ec77265e7c0208f147f279cbaa286fcc909300311e367432d19da285e
Contents?: true
Size: 1.68 KB
Versions: 7
Compression:
Stored size: 1.68 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") data_module = "gem-track-click" data_module << " ga4-link-tracker" if ga4_tracking %> <%= tag.div class: "gem-c-contextual-sidebar__cta gem-c-contextual-sidebar__cta--ukraine", data: { module: data_module } do %> <%= tag.h2 title, class: "gem-c-contextual-sidebar__heading govuk-heading-s" %> <%= tag.ul class: "gem-c-contextual-sidebar__list" do %> <% index_total = t("components.related_navigation.ukraine.links").length %> <% t("components.related_navigation.ukraine.links").each_with_index do |link, index| %> <%= tag.li class: "gem-c-contextual-sidebar__text govuk-body" do %> <% ga4_attributes = { event_name: "navigation", type: "related content", index_section: "#{ga4_tracking_counts.index_section_count}", index_link: "#{index + 1}", index_section_count: "#{ga4_tracking_counts.index_section_count}", index_total: "#{index_total}", section: title, } if ga4_tracking %> <%= 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", ga4_link: ga4_attributes, }, lang: lang %> <% end %> <% end %> <% end %> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems