app/views/shared/_header_navbar.html.erb in blacklight-spotlight-2.13.0 vs app/views/shared/_header_navbar.html.erb in blacklight-spotlight-3.0.0.alpha.1
- old
+ new
@@ -1,17 +1,12 @@
-<div id="header-navbar" class="navbar navbar-default navbar-static-top navbar-inverse" role="navigation">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#user-util-collapse">
- <span class="sr-only"><%= t :toggle_nav %></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
+<nav class="navbar navbar-expand-md navbar-dark bg-dark topbar" role="navigation">
+ <div class="<%= container_classes %>">
+ <%= link_to application_name, main_app.root_path, class: 'mb-0 navbar-brand navbar-logo' %>
+ <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#user-util-collapse" aria-controls="user-util-collapse" aria-expanded="false" aria-label="<%= t :toggle_nav %>">
+ <span class="navbar-toggler-icon"></span>
</button>
- <%= link_to application_name, main_app.root_path, class: "navbar-brand" %>
- </div>
- <div class="collapse navbar-collapse" id="user-util-collapse">
- <%= render :partial=>'/user_util_links' %>
+ <div class="collapse navbar-collapse justify-content-md-end" id="user-util-collapse">
+ <%= render partial: 'shared/user_util_links' %>
</div>
</div>
-</div>
+</nav>