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
679 B
18 lines
679 B
3 years ago
|
<nav class="app-primary-navigation" aria-label="primary">
|
||
|
<div class="govuk-width-container">
|
||
|
<ul class="app-primary-navigation__list">
|
||
|
<% items.each do |item| %>
|
||
|
<% if item.current %>
|
||
|
<li class="app-primary-navigation__item app-primary-navigation__item--current">
|
||
|
<%= govuk_link_to item[:text], item[:href], class: "app-primary-navigation__link", aria: { current: "page" } %>
|
||
|
</li>
|
||
|
<% else %>
|
||
|
<li class="app-primary-navigation__item">
|
||
|
<%= govuk_link_to item[:text], item[:href], class: "app-primary-navigation__link" %>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</nav>
|