From 11019eb9844b1e9a1af69a08df01325ff41920f3 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Tue, 15 May 2018 12:58:56 +0100 Subject: [PATCH] Use new breadcrumbs component in contextual breadcrumbs The component is now available here rather than in static. --- .../components/_contextual_breadcrumbs.html.erb | 8 ++++---- .../app/views/govuk_component/breadcrumbs.raw.html.erb | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 spec/dummy/app/views/govuk_component/breadcrumbs.raw.html.erb diff --git a/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb b/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb index 92c209a015..ac22edfe5d 100644 --- a/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +++ b/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb @@ -6,18 +6,18 @@ navigation.step_nav_helper.header %> <% elsif navigation.content_tagged_to_mainstream_browse_pages? %> - <%= render 'govuk_component/breadcrumbs', breadcrumbs: navigation.breadcrumbs %> + <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %> <% elsif navigation.content_has_curated_related_items? %> - <%= 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? %> - <%= render 'govuk_component/breadcrumbs', + <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.taxon_breadcrumbs[:breadcrumbs], collapse_on_mobile: true %> <% elsif navigation.breadcrumbs.any? %> - <%= render 'govuk_component/breadcrumbs', breadcrumbs: navigation.breadcrumbs %> + <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %> <% else %> <% end %> diff --git a/spec/dummy/app/views/govuk_component/breadcrumbs.raw.html.erb b/spec/dummy/app/views/govuk_component/breadcrumbs.raw.html.erb deleted file mode 100644 index 075974980e..0000000000 --- a/spec/dummy/app/views/govuk_component/breadcrumbs.raw.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -
- Stubbed breadcrumb component normally lives in static -