Skip to content

Commit

Permalink
Move breadcrumbs out of main
Browse files Browse the repository at this point in the history
  • Loading branch information
unoduetre committed Sep 19, 2024
1 parent 0d81a3e commit 6329c20
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 75 deletions.
10 changes: 10 additions & 0 deletions app/views/content_items/_service_manual_breadcrumbs.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="govuk-width-container">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: @content_item.breadcrumbs,
collapse_on_mobile: true
} %>
</div>
</div>
</div>
9 changes: 4 additions & 5 deletions app/views/content_items/service_manual_guide.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
<%= render "shared/custom_phase_message", phase: @content_item.phase %>
<% end %>

<div class="govuk-width-container">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: @content_item.breadcrumbs,
collapse_on_mobile: true
} %>
<% content_for :header do %>
<%= render partial: "content_items/service_manual_breadcrumbs" %>
<% end %>

<div class="govuk-width-container">
<!-- Page title and contact -->
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
Expand Down
12 changes: 6 additions & 6 deletions app/views/content_items/service_manual_service_standard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<% content_for :phase_message do %>
<%= render 'shared/custom_phase_message', phase: @content_item.phase %>
<% end %>
<div class="govuk-width-container">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: @content_item.breadcrumbs,
collapse_on_mobile: true
} %>

<% content_for :header do %>
<%= render partial: "content_items/service_manual_breadcrumbs" %>
<% end %>

<div class="govuk-width-container">
<!-- Page title and contact -->
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
Expand Down Expand Up @@ -62,4 +62,4 @@
</aside>
</div>
</div>
</div>
</div>
14 changes: 10 additions & 4 deletions app/views/content_items/service_manual_topic.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
<%= render 'shared/custom_phase_message', phase: @content_item.phase %>
<% end %>

<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: @content_item.breadcrumbs,
collapse_on_mobile: true
} %>
<% content_for :header do %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: @content_item.breadcrumbs,
collapse_on_mobile: true
} %>
</div>
</div>
<% end %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
Expand Down
16 changes: 4 additions & 12 deletions app/views/histories/10_downing_street.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
<% content_for :header do %>
<%= render partial: "histories/breadcrumbs" %>
<% end %>

<header class="govuk-grid-row">
<div class="govuk-grid-column-full">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: [
{
title: "Home",
url: "/",
},
{
title: "History of the UK Government",
url: "/government/history",
},
]
} %>
<%= render "govuk_publishing_components/components/title", {
context: "History",
title: "10 Downing Street",
Expand Down
16 changes: 4 additions & 12 deletions app/views/histories/11_downing_street.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
<% content_for :header do %>
<%= render partial: "histories/breadcrumbs" %>
<% end %>

<header class="govuk-grid-row">
<div class="govuk-grid-column-full">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: [
{
title: "Home",
url: "/",
},
{
title: "History of the UK Government",
url: "/government/history",
},
]
} %>
<%= render "govuk_publishing_components/components/title", {
context: "History",
title: "11 Downing Street",
Expand Down
16 changes: 4 additions & 12 deletions app/views/histories/1_horse_guards_road.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
<% content_for :header do %>
<%= render partial: "histories/breadcrumbs" %>
<% end %>

<header class="govuk-grid-row">
<div class="govuk-grid-column-full">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: [
{
title: "Home",
url: "/",
},
{
title: "History of the UK Government",
url: "/government/history",
},
]
} %>
<%= render "govuk_publishing_components/components/title", {
context: "History",
title: "1 Horse Guards Road",
Expand Down
16 changes: 16 additions & 0 deletions app/views/histories/_breadcrumbs.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: [
{
title: "Home",
url: "/",
},
{
title: "History of the UK Government",
url: "/government/history",
},
]
} %>
</div>
</div>
16 changes: 4 additions & 12 deletions app/views/histories/king_charles_street.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
<% content_for :header do %>
<%= render partial: "histories/breadcrumbs" %>
<% end %>

<header class="govuk-grid-row">
<div class="govuk-grid-column-full">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: [
{
title: "Home",
url: "/",
},
{
title: "History of the UK Government",
url: "/government/history",
},
]
} %>
<%= render "govuk_publishing_components/components/title", {
context: "History",
title: "King Charles Street",
Expand Down
16 changes: 4 additions & 12 deletions app/views/histories/lancaster_house.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
<% content_for :header do %>
<%= render partial: "histories/breadcrumbs" %>
<% end %>

<header class="govuk-grid-row">
<div class="govuk-grid-column-full">
<%= render "govuk_publishing_components/components/breadcrumbs", {
breadcrumbs: [
{
title: "Home",
url: "/",
},
{
title: "History of the UK Government",
url: "/government/history",
},
]
} %>
<%= render "govuk_publishing_components/components/title", {
context:"History",
title: "Lancaster House",
Expand Down

0 comments on commit 6329c20

Please sign in to comment.