zeus.ugent.be/layouts/partials/_sub_navbar.erb

12 lines
347 B
Text
Raw Permalink Normal View History

2020-08-06 15:02:14 +02:00
<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>