Skip to content

Commit

Permalink
Use govuk-components for help page related links
Browse files Browse the repository at this point in the history
In static we removed the CSS for the old sidebar, but the help page index was stilling using it:

https://www.gov.uk/help

It should have looked like this:

http://webarchive.nationalarchives.gov.uk/20151109153250/https://www.gov.uk/help

Using the govuk-component fixes this.
  • Loading branch information
Mat Moore committed Jan 30, 2017
1 parent 06739cb commit 9f36e84
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions app/views/help/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,23 @@

</main>

<!-- related -->
<div class="related-positioning">
<div class="related-container">
<div class="related" id="related">
<div class="inner group">
<h2 id="parent-section">Find a contact</h2>
<nav role="navigation" aria-labelledby="parent-section">
<ul>
<li>
<a href="/contact">Contacts</a>
</li>
<li>
<a href="/contact/foi">Make a Freedom of Information Request</a>
</li>
</ul>
</nav>
<a class="return-to-top" href="#content">Return to top &uarr;</a>
</div>
</div>
</div>
<div class="related-container">
<%= render partial: 'govuk_component/related_items', locals: {
sections: [
{
title: "Find a contact",
id: "parent-section",
items: [
{
title: "Contacts",
url: "/contact"
},
{
title: "Make a Freedom of Information Request",
url: "/contact/foi"
}
]
}
]
} %>
</div>
<!-- end related -->

0 comments on commit 9f36e84

Please sign in to comment.