You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
676 B
18 lines
676 B
3 years ago
|
<nav class="app-primary-navigation">
|
||
|
<div class="govuk-width-container">
|
||
|
<ul class="app-primary-navigation__list">
|
||
|
|
||
|
<% items.each do |item| %>
|
||
|
<% if current_page?(item.fetch(:url)) || current_page?("#{item.fetch(:url)}/details") %>
|
||
|
<li class="app-primary-navigation__item app-primary-navigation__item--current">
|
||
|
<%= govuk_link_to item[:name], item[:url], class: 'app-primary-navigation__link', aria: { current: 'page' } %>
|
||
|
</li>
|
||
|
<% else %>
|
||
|
<li class="app-primary-navigation__item">
|
||
|
<%= govuk_link_to item[:name], item[:url], class: 'app-primary-navigation__link' %>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</nav>
|