Skip to content

Commit

Permalink
Merge pull request #2595 from alphagov/copy-old-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
chao-xian authored Sep 20, 2021
2 parents 7c89420 + edad362 commit 88a2d15
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/controllers/root_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ class RootController < ApplicationController
504
campaign
gem_layout
gem_layout_old_header
gem_layout_account_manager
gem_layout_explore_header
gem_layout_full_width
gem_layout_full_width_old_header
gem_layout_full_width_explore_header
gem_layout_no_feedback_form
gem_layout_no_footer_navigation
Expand Down
3 changes: 2 additions & 1 deletion app/views/root/gem_layout_account_manager.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
omit_global_banner: true,
omit_user_satisfaction_survey: true,
show_account_layout: true,
account_nav_location: "your-account"
account_nav_location: "your-account",
show_explore_header: false,
} %>
4 changes: 4 additions & 0 deletions app/views/root/gem_layout_full_width_old_header.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<%= render partial: 'gem_base', locals: {
full_width: true,
show_explore_header: false,
} %>
1 change: 1 addition & 0 deletions app/views/root/gem_layout_old_header.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= render partial: "gem_base", locals: { show_explore_header: false } %>
5 changes: 5 additions & 0 deletions app/views/root/header_footer_only_old_header.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<%= render partial: 'base', locals: {
css_file: 'header-footer-only',
js_file: 'header-footer-only',
show_explore_header: false,
} %>

0 comments on commit 88a2d15

Please sign in to comment.