Sha256: f628c2c2432c1e29b8ffafbc2a001674fd0f51d6067db4087b46e8c9a58ba79c

Contents?: true

Size: 1.18 KB

Versions: 67

Compression:

Stored size: 1.18 KB

Contents

<% prioritise_taxon_breadcrumbs ||= false %>
<% breadcrumb_selector = GovukPublishingComponents::Presenters::BreadcrumbSelector.new(content_item, request, prioritise_taxon_breadcrumbs) %>
<% inverse ||= false %>
<% collapse_on_mobile ||= true unless local_assigns[:collapse_on_mobile].eql?(false) %>

<div class="gem-c-contextual-breadcrumbs">
  <% if breadcrumb_selector.step_by_step %>
    <%= render 'govuk_publishing_components/components/step_by_step_nav_header', breadcrumb_selector.breadcrumbs %>
  <% elsif breadcrumb_selector.breadcrumbs %>
    <%= render 'govuk_publishing_components/components/breadcrumbs',
               breadcrumbs: breadcrumb_selector.breadcrumbs,
               inverse: inverse,
               collapse_on_mobile: collapse_on_mobile %>
  <% end %>
  <% if breadcrumb_selector.priority_breadcrumbs %>
    <%= render 'govuk_publishing_components/components/step_by_step_nav_header', breadcrumb_selector.priority_breadcrumbs %>
    <% meta_tag = GovukPublishingComponents::Presenters::MetaTags.new(content_item, local_assigns, request).brexit_priority_breadcrumb_tag %>
    <meta name="<%= meta_tag.keys.first %>" content="<%= meta_tag.values.first %>">
  <% end %>
</div>

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
govuk_publishing_components-29.0.1 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-29.0.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.9.2 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.9.1 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.9.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.8.1 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.8.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.7.1 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.6.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.5.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.4.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.3.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.2.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.1.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-28.0.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-27.20.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-27.19.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-27.18.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-27.17.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb
govuk_publishing_components-27.16.0 app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb