app/views/shared/_exhibit_navbar.html.erb in blacklight-spotlight-0.13.0 vs app/views/shared/_exhibit_navbar.html.erb in blacklight-spotlight-0.14.0
- old
+ new
@@ -1,15 +1,14 @@
-<div id="exhibit-navbar" class="navbar navbar-default<%= ' page-masthead' unless exhibit_masthead? %>" role="navigation">
+<div id="exhibit-navbar" class="exhibit-navbar navbar navbar-default" role="navigation">
<div class="container">
- <% unless exhibit_masthead? %>
+ <% if resource_masthead? %>
<%= link_to(current_exhibit.title, spotlight.exhibit_path(current_exhibit), class: 'navbar-brand') %>
<% end %>
+
<ul class="nav navbar-nav">
- <% if current_exhibit %>
- <li class="<%= "active" if current_page?(current_exhibit) %>"><%= link_to t(:'spotlight.curation.nav.home'), current_exhibit %></li>
- <% current_exhibit.main_navigations.displayable.each do |navigation| %>
- <%= render partial: "shared/#{navigation.nav_type}_navbar", locals: {navigation: navigation} %>
- <% end %>
+ <li class="<%= "active" if current_page?(current_exhibit) %>"><%= link_to t(:'spotlight.curation.nav.home'), current_exhibit %></li>
+ <% current_exhibit.main_navigations.displayable.each do |navigation| %>
+ <%= render partial: "shared/#{navigation.nav_type}_navbar", locals: { navigation: navigation } %>
<% end %>
</ul>
<% if should_render_spotlight_search_bar? %>
<div class="navbar-right navbar-nav nav">
<%= render_search_bar %>