Skip to content

Commit

Permalink
Merge pull request #873 from alphagov/without-footer-links-layout
Browse files Browse the repository at this point in the history
Add a new layout that excludes footer links
  • Loading branch information
36degrees authored Jan 9, 2017
2 parents c2be16c + ec8ef20 commit c703a27
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 36 deletions.
74 changes: 38 additions & 36 deletions app/views/root/_base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,46 +44,48 @@
<% end %>

<% content_for :footer_top do %>
<div class="footer-categories">
<div class="footer-explore">
<h2>Services and information</h2>
<% unless local_assigns[:hide_footer_links] %>
<div class="footer-categories">
<div class="footer-explore">
<h2>Services and information</h2>

<ul>
<li><a href="/browse/benefits">Benefits</a></li>
<li><a href="/browse/births-deaths-marriages">Births, deaths, marriages and care</a></li>
<li><a href="/browse/business">Business and self-employed</a></li>
<li><a href="/browse/childcare-parenting">Childcare and parenting</a></li>
<li><a href="/browse/citizenship">Citizenship and living in the UK</a></li>
<li><a href="/browse/justice">Crime, justice and the law</a></li>
<li><a href="/browse/disabilities">Disabled people</a></li>
<li><a href="/browse/driving">Driving and transport</a></li>
</ul>
<ul>
<li><a href="/browse/education">Education and learning</a></li>
<li><a href="/browse/employing-people">Employing people</a></li>
<li><a href="/browse/environment-countryside">Environment and countryside</a></li>
<li><a href="/browse/housing-local-services">Housing and local services</a></li>
<li><a href="/browse/tax">Money and tax</a></li>
<li><a href="/browse/abroad">Passports, travel and living abroad</a></li>
<li><a href="/browse/visas-immigration">Visas and immigration</a></li>
<li><a href="/browse/working">Working, jobs and pensions</a></li>
</ul>
</div>
<ul>
<li><a href="/browse/benefits">Benefits</a></li>
<li><a href="/browse/births-deaths-marriages">Births, deaths, marriages and care</a></li>
<li><a href="/browse/business">Business and self-employed</a></li>
<li><a href="/browse/childcare-parenting">Childcare and parenting</a></li>
<li><a href="/browse/citizenship">Citizenship and living in the UK</a></li>
<li><a href="/browse/justice">Crime, justice and the law</a></li>
<li><a href="/browse/disabilities">Disabled people</a></li>
<li><a href="/browse/driving">Driving and transport</a></li>
</ul>
<ul>
<li><a href="/browse/education">Education and learning</a></li>
<li><a href="/browse/employing-people">Employing people</a></li>
<li><a href="/browse/environment-countryside">Environment and countryside</a></li>
<li><a href="/browse/housing-local-services">Housing and local services</a></li>
<li><a href="/browse/tax">Money and tax</a></li>
<li><a href="/browse/abroad">Passports, travel and living abroad</a></li>
<li><a href="/browse/visas-immigration">Visas and immigration</a></li>
<li><a href="/browse/working">Working, jobs and pensions</a></li>
</ul>
</div>

<div class="footer-inside-government">
<h2>Departments and policy</h2>
<div class="footer-inside-government">
<h2>Departments and policy</h2>

<ul>
<li><a href="/government/how-government-works">How government works</a></li>
<li><a href="/government/organisations">Departments</a></li>
<li><a href="/government/world">Worldwide</a></li>
<li><a href="/government/policies">Policies</a></li>
<li><a href="/government/publications">Publications</a></li>
<li><a href="/government/announcements">Announcements</a></li>
</ul>
<ul>
<li><a href="/government/how-government-works">How government works</a></li>
<li><a href="/government/organisations">Departments</a></li>
<li><a href="/government/world">Worldwide</a></li>
<li><a href="/government/policies">Policies</a></li>
<li><a href="/government/publications">Publications</a></li>
<li><a href="/government/announcements">Announcements</a></li>
</ul>
</div>
<hr>
</div>
<hr>
</div>
<% end %>
<% end %>
<% content_for :footer_support_links do %>
<%= render :partial => "footer_support_links" %>
Expand Down
7 changes: 7 additions & 0 deletions app/views/root/without_footer_links.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<%= render partial: 'base', locals: {
hide_footer_links: true,
hide_nav: true, # no breadcrumbs, you can include them using components if
# you need them, rather than using slimmer
css_file: 'core-layout',
js_file: 'header-footer-only'
} %>

0 comments on commit c703a27

Please sign in to comment.