Sha256: 0ed43a00634d6e9afc43f134d800e9346c07e42c87381ba15c1cddfd1da589e2

Contents?: true

Size: 857 Bytes

Versions: 8

Compression:

Stored size: 857 Bytes

Contents

<% navigation = GovukPublishingComponents::Presenters::ContextualNavigation.new(content_item, request.path) %>

<% if navigation.step_nav_helper.show_header? %>
  <!-- Rendering step by step nav -->
  <%= render 'govuk_publishing_components/components/step_by_step_nav_header', navigation.step_nav_helper.header %>
<% else %>
  <% if navigation.should_present_taxonomy_navigation? %>
    <!-- Rendering taxonomy breadcrumbs -->
    <% if navigation.taxon_breadcrumbs.any? %>
      <%= render 'govuk_component/breadcrumbs',
        breadcrumbs: navigation.taxon_breadcrumbs[:breadcrumbs],
        collapse_on_mobile: true %>
    <% end %>
  <% else %>
    <!-- Rendering normal breadcrumbs -->
    <% if navigation.breadcrumbs.any? %>
      <%= render 'govuk_component/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
    <% end %>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
govuk_publishing_components-6.5.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-6.4.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-6.3.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-6.2.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-6.1.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-6.0.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-5.7.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-5.6.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb