Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gem_layout_full_width_browse_header template #3053

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/controllers/root_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions app/views/root/_gem_base.html.erb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= render partial: 'gem_base', locals: { full_width: true, blue_bar: true, blue_bar_background_colour: "browse" } %>