Skip to content

Commit

Permalink
Use new breadcrumbs component in contextual breadcrumbs
Browse files Browse the repository at this point in the history
The component is now available here rather than in static.
  • Loading branch information
thomasleese committed May 15, 2018
1 parent 87e872f commit 11019eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
navigation.step_nav_helper.header %>
<% elsif navigation.content_tagged_to_mainstream_browse_pages? %>
<!-- Rendering parent-based breadcrumbs because the page is tagged to mainstream browse -->
<%= render 'govuk_component/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
<%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
<% elsif navigation.content_has_curated_related_items? %>
<!-- Rendering parent-based breadcrumbs because the page has curated related links -->
<%= render 'govuk_component/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
<%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
<% elsif navigation.content_is_tagged_to_a_live_taxon? %>
<!-- Rendering taxonomy breadcrumbs because the page is tagged to live taxons -->
<%= render 'govuk_component/breadcrumbs',
<%= render 'govuk_publishing_components/components/breadcrumbs',
breadcrumbs: navigation.taxon_breadcrumbs[:breadcrumbs],
collapse_on_mobile: true %>
<% elsif navigation.breadcrumbs.any? %>
<!-- Rendering parent-based breadcrumbs because no browse, no related links, no live taxons -->
<%= render 'govuk_component/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
<%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
<% else %>
<!-- Not rendering any breadcrumbs because there aren't any -->
<% end %>
3 changes: 0 additions & 3 deletions spec/dummy/app/views/govuk_component/breadcrumbs.raw.html.erb

This file was deleted.

0 comments on commit 11019eb

Please sign in to comment.