Skip to content

Commit

Permalink
Merge pull request #2634 from alphagov/di-tweaks
Browse files Browse the repository at this point in the history
Footer tweaks for DI migration
  • Loading branch information
danacotoran authored Oct 29, 2021
2 parents c847d90 + 4817ee5 commit 4ca3b81
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
28 changes: 27 additions & 1 deletion app/views/root/_account.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,38 @@
<% omit_account_navigation ||= nil %>
<%
omit_account_navigation ||= nil
di_location = "https://signin.account.gov.uk"
%>

<%= render partial: "gem_base", locals: {
account_nav_location: "your-account",
omit_feedback_form: true,
omit_footer_border: true,
omit_global_banner: true,
omit_user_satisfaction_survey: true,
omit_footer_navigation: true,
show_account_layout: true,
show_explore_header: false,
omit_account_navigation: omit_account_navigation,
footer_meta: { items: [
{
href: "#{di_location}/accessibility-statement",
text: "Accessibility statement"
},
{
href: "/help/cookies",
text: "Cookies"
},
{
href: "#{di_location}/terms-and-conditions",
text: "Terms and conditions"
},
{
href: "#{di_location}/privacy-statement",
text: "Privacy notice"
},
{
href: "#{di_location}/support",
text: "Support"
},
]}
} %>
4 changes: 4 additions & 0 deletions app/views/root/_gem_base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
full_width ||= false
omit_feedback_form ||= nil
omit_footer_navigation ||= nil
omit_footer_border ||= nil
omit_global_banner ||= nil
omit_user_satisfaction_survey ||= nil
omit_account_navigation ||= nil
product_name ||= nil
show_explore_header = show_explore_header === false ? false : true
show_account_layout ||= false
account_nav_location ||= nil
footer_meta ||= nil
draft_environment ||= ENV["DRAFT_ENVIRONMENT"].present?

if @emergency_banner
Expand Down Expand Up @@ -66,8 +68,10 @@
omit_feedback_form: omit_feedback_form,
omit_footer_navigation: omit_footer_navigation,
omit_account_navigation: omit_account_navigation,
omit_footer_border: omit_footer_border,
product_name: product_name,
show_account_layout: show_account_layout,
show_explore_header: show_explore_header,
title: content_for?(:title) ? yield(:title) : "GOV.UK - The best place to find government services and information",
footer_meta: footer_meta,
} %>

0 comments on commit 4ca3b81

Please sign in to comment.