Sha256: be0b79a9b320fd9b1529b5ef3c29ed5cf6aa63d34aa9ca91d2cbfb5aef336901
Contents?: true
Size: 1.44 KB
Versions: 186
Compression:
Stored size: 1.44 KB
Contents
<% related_nav_helper = GovukPublishingComponents::Presenters::RelatedNavigationHelper.new(local_assigns) %> <% shared_helper = GovukPublishingComponents::Presenters::SharedHelper.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" <%= shared_helper.t_lang( "components.related_#{local_assigns[:context]}_navigation.related_content", default: 'components.related_navigation.related_content' ) %> > <%= 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, shared_helper: shared_helper, section_title: section_title, links: links, section_index: section_index, random: random %> <% end %> </div> <% end %>
Version data entries
186 entries across 186 versions & 1 rubygems