From e96e3289d8c4d2a304e827552713e6593e7e02e4 Mon Sep 17 00:00:00 2001 From: Patrick Cartlidge Date: Fri, 5 May 2023 11:37:19 +0100 Subject: [PATCH] Add new template for browse pages --- app/controllers/root_controller.rb | 1 + app/views/root/_gem_base.html.erb | 4 ++++ app/views/root/gem_layout_full_width_browse_header.html.erb | 1 + 3 files changed, 6 insertions(+) create mode 100644 app/views/root/gem_layout_full_width_browse_header.html.erb diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index df4934ca7..f134c89a1 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -27,6 +27,7 @@ class RootController < ApplicationController gem_layout_account_manager gem_layout_explore_header gem_layout_full_width + gem_layout_full_width_browse_header gem_layout_full_width_explore_header gem_layout_full_width_no_footer_navigation gem_layout_homepage diff --git a/app/views/root/_gem_base.html.erb b/app/views/root/_gem_base.html.erb index 262fba708..c0656aa62 100644 --- a/app/views/root/_gem_base.html.erb +++ b/app/views/root/_gem_base.html.erb @@ -1,4 +1,6 @@ <% + blue_bar ||= true + blue_bar_background_colour ||= nil logo_link ||= Plek.new.website_root.present? ? Plek.new.website_root : "https://www.gov.uk/" full_width ||= false omit_emergency_banner ||= false @@ -35,6 +37,8 @@ <%= render "govuk_publishing_components/components/layout_for_public", { account_nav_location: account_nav_location, + blue_bar: blue_bar, + blue_bar_background_colour: blue_bar_background_colour, draft_watermark: draft_environment, emergency_banner: emergency_banner.presence, full_width: full_width, diff --git a/app/views/root/gem_layout_full_width_browse_header.html.erb b/app/views/root/gem_layout_full_width_browse_header.html.erb new file mode 100644 index 000000000..a68e12d15 --- /dev/null +++ b/app/views/root/gem_layout_full_width_browse_header.html.erb @@ -0,0 +1 @@ +<%= render partial: 'gem_base', locals: { full_width: true, blue_bar: true, blue_bar_background_colour: "browse" } %>