From 9e081f842644389789c8eb7d8e5b0189cb01d18d Mon Sep 17 00:00:00 2001 From: Max Harden Date: Tue, 25 May 2021 15:17:53 +0100 Subject: [PATCH] Replace context link with breadcrumb --- app/views/histories/10_downing_street.html.erb | 13 ++++++++++++- app/views/histories/11_downing_street.html.erb | 13 ++++++++++++- app/views/histories/1_horse_guards_road.html.erb | 13 ++++++++++++- app/views/histories/king_charles_street.html.erb | 13 ++++++++++++- app/views/histories/lancaster_house.html.erb | 13 ++++++++++++- 5 files changed, 60 insertions(+), 5 deletions(-) diff --git a/app/views/histories/10_downing_street.html.erb b/app/views/histories/10_downing_street.html.erb index 7e1c576a1..003eb39bc 100644 --- a/app/views/histories/10_downing_street.html.erb +++ b/app/views/histories/10_downing_street.html.erb @@ -1,9 +1,20 @@
+ <%= 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: { text: "History", - href: "/government/history", }, title: "10 Downing Street", } %> diff --git a/app/views/histories/11_downing_street.html.erb b/app/views/histories/11_downing_street.html.erb index 3d6a19771..a49140e6b 100644 --- a/app/views/histories/11_downing_street.html.erb +++ b/app/views/histories/11_downing_street.html.erb @@ -1,9 +1,20 @@
+ <%= 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: { text: "History", - href: "/government/history", }, title: "11 Downing Street", } %> diff --git a/app/views/histories/1_horse_guards_road.html.erb b/app/views/histories/1_horse_guards_road.html.erb index 250923255..65aef80c9 100644 --- a/app/views/histories/1_horse_guards_road.html.erb +++ b/app/views/histories/1_horse_guards_road.html.erb @@ -1,9 +1,20 @@
+ <%= 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: { text: "History", - href: "/government/history", }, title: "1 Horse Guards Road", } %> diff --git a/app/views/histories/king_charles_street.html.erb b/app/views/histories/king_charles_street.html.erb index 11845921a..dfbf8ed21 100644 --- a/app/views/histories/king_charles_street.html.erb +++ b/app/views/histories/king_charles_street.html.erb @@ -1,9 +1,20 @@
+ <%= 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: { text: "History", - href: "/government/history", }, title: "King Charles Street", } %> diff --git a/app/views/histories/lancaster_house.html.erb b/app/views/histories/lancaster_house.html.erb index a8400e267..cae270d15 100644 --- a/app/views/histories/lancaster_house.html.erb +++ b/app/views/histories/lancaster_house.html.erb @@ -1,9 +1,20 @@
+ <%= 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: { text: "History", - href: "/government/history", }, title: "Lancaster House", } %>