Sha256: 3c66a8c9a9e83f81e728797411f59f05109c2fb9991c8393d4283d7aac717861
Contents?: true
Size: 1.09 KB
Versions: 86
Compression:
Stored size: 1.09 KB
Contents
<% related_nav_helper = GovukPublishingComponents::Presenters::RelatedNavigationHelper.new(local_assigns) %> <% if related_nav_helper.related_navigation? %> <% random = SecureRandom.hex(4) %> <div class="gem-c-related-navigation"> <% if local_assigns[:context] != :footer %> <h2 id="related-nav-related_items-<%= random %>" class="gem-c-related-navigation__main-heading" data-track-count="sidebarRelatedItemSection"> <%= t("components.related_#{local_assigns[:context]}_navigation.related_content", default: t('components.related_navigation.related_content')) %> </h2> <% end %> <% section_index = 0 %> <% related_nav_helper.related_navigation.each do |section_title, links| %> <% next unless links.any? %> <% section_index += 1 %> <%= render 'govuk_publishing_components/components/related_navigation/section', related_nav_helper: related_nav_helper, section_title: section_title, links: links, section_index: section_index, random: random %> <% end %> </div> <% end %>
Version data entries
86 entries across 86 versions & 1 rubygems