Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #621 from DFE-Digital/footer-component
Browse files Browse the repository at this point in the history
Use footer component from govuk-components gem
  • Loading branch information
paulrobertlloyd authored Jan 26, 2021
2 parents ee1cead + ea7bd5b commit db70537
Showing 1 changed file with 40 additions and 41 deletions.
81 changes: 40 additions & 41 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,50 +61,49 @@
) %>
<% end %>

<footer class="govuk-footer govuk-!-display-none-print" role="contentinfo">
<div class="govuk-width-container">
<div class="govuk-footer__meta">
<div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
<h2 class="govuk-heading-m">Get support</h2>
<div class="govuk-grid-row govuk-!-margin-bottom-5">
<div class="govuk-grid-column-one-half">
<h2 class="govuk-heading-s govuk-!-margin-bottom-1">Telephone</h2>
<ul class="govuk-footer__meta-custom govuk-list govuk-!-font-size-16">
<li>0800 389 2500</li>
<li>Monday to Friday, 8.30am to 5pm (except public&nbsp;holidays)</li>
<li>Free of charge</li>
</ul>
</div>
<div class="govuk-grid-column-one-half">
<h2 class="govuk-heading-s govuk-!-margin-bottom-1">Online chat</h2>
<ul class="govuk-footer__meta-custom govuk-list govuk-!-font-size-16 govuk-!-margin-bottom-8">
<li><%= link_to "Talk to an adviser online", "https://beta-getintoteaching.education.gov.uk/#talk-to-us", class: "govuk-footer__link" %></li>
<li>Monday to Friday, 8.30am to 5pm (except public&nbsp;holidays)</li>
</ul>
</div>
<%= render GovukComponent::Footer.new do |footer| %>
<%= footer.slot(:meta) do %>
<div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
<h2 class="govuk-heading-m">Get support</h2>
<div class="govuk-grid-row govuk-!-margin-bottom-5">
<div class="govuk-grid-column-one-half">
<h2 class="govuk-heading-s govuk-!-margin-bottom-1">Telephone</h2>
<ul class="govuk-footer__meta-custom govuk-list govuk-!-font-size-16">
<li>0800 389 2500</li>
<li>Monday to Friday, 8.30am to 5pm (except public&nbsp;holidays)</li>
<li>Free of charge</li>
</ul>
</div>
<div class="govuk-grid-column-one-half">
<h2 class="govuk-heading-s govuk-!-margin-bottom-1">Online chat</h2>
<ul class="govuk-footer__meta-custom govuk-list govuk-!-font-size-16 govuk-!-margin-bottom-8">
<li><%= link_to "Talk to an adviser online", "https://getintoteaching.education.gov.uk/lp/live-chat", class: "govuk-footer__link" %></li>
<li>Monday to Friday, 8.30am to 5pm (except public&nbsp;holidays)</li>
</ul>
</div>
<h2 class="govuk-visually-hidden">Support links</h2>
<ul class="govuk-footer__inline-list govuk-!-margin-bottom-0">
<li class="govuk-footer__inline-list-item">
<%= link_to "Accessibility", accessibility_path, class: "govuk-footer__link" %>
</li>
<li class="govuk-footer__inline-list-item">
<%= link_to "Cookies", cookie_preferences_path, class: "govuk-footer__link" %>
</li>
<li class="govuk-footer__inline-list-item">
<%= link_to "Privacy policy", privacy_path, class: "govuk-footer__link" %>
</li>
<li class="govuk-footer__inline-list-item">
<%= link_to "Terms and conditions", terms_path, class: "govuk-footer__link" %>
</li>
</ul>
</div>
<div class="govuk-footer__meta-item">
<a class="govuk-footer__link govuk-footer__copyright-logo govuk-!-margin-bottom-1" href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">© Crown copyright</a>
</div>
<h2 class="govuk-visually-hidden">Support links</h2>
<ul class="govuk-footer__inline-list govuk-!-margin-bottom-0">
<li class="govuk-footer__inline-list-item">
<%= link_to "Accessibility", accessibility_path, class: "govuk-footer__link" %>
</li>
<li class="govuk-footer__inline-list-item">
<%= link_to "Cookies", cookie_preferences_path, class: "govuk-footer__link" %>
</li>
<li class="govuk-footer__inline-list-item">
<%= link_to "Privacy policy", privacy_path, class: "govuk-footer__link" %>
</li>
<li class="govuk-footer__inline-list-item">
<%= link_to "Terms and conditions", terms_path, class: "govuk-footer__link" %>
</li>
</ul>
</div>
<div class="govuk-footer__meta-item">
<a class="govuk-footer__link govuk-footer__copyright-logo govuk-!-margin-bottom-1" href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">© Crown copyright</a>
</div>
</div>
</footer>
<% end %>
<% end %>

<%= javascript_pack_tag 'application' %>
<%= content_for(:body_end) %>
</body>
Expand Down

0 comments on commit db70537

Please sign in to comment.