zeus.ugent.be/layouts/partials/_sub_navbar.erb
2020-08-06 15:02:14 +02:00

11 lines
347 B
Text

<div class="subnav tabs is-centered">
<ul>
<% subnavigables(@item[:subnavigation][:bar]).map { |e| e[:subnavigation] }.each do |nav| %>
<li class="<%= 'is-active' if @selected == nav[:identifier] %>">
<a href="<%= "/#{nav[:bar]}/#{nav[:identifier]}" %>">
<%= nav[:name] %>
</a>
</li>
<% end %>
</ul>
</div>