app/views/shared/_header_navbar.html.erb in blacklight-spotlight-4.0.3 vs app/views/shared/_header_navbar.html.erb in blacklight-spotlight-4.1.0

- old
+ new

@@ -1,12 +1,6 @@ -<nav class="navbar navbar-expand-md navbar-dark bg-dark topbar" role="navigation" aria-label="<%= t('spotlight.topbar.label') %>"> - <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-bs-toggle="collapse" data-target="#user-util-collapse" data-bs-target="#user-util-collapse" aria-controls="user-util-collapse" aria-expanded="false" aria-label="<%= t :toggle_nav %>"> - <span class="navbar-toggler-icon"></span> - </button> - - <div class="collapse navbar-collapse justify-content-md-end" id="user-util-collapse"> - <%= render partial: 'shared/user_util_links' %> - </div> - </div> -</nav> +<% if blacklight_config.header_component.present? && blacklight_config.header_component != Blacklight::HeaderComponent %> + <%= render blacklight_config.header_component.new(blacklight_config: blacklight_config) %> +<% else %> + <%= render Spotlight::HeaderComponent.new(blacklight_config: blacklight_config) %> + <% Spotlight.deprecator.warn("_header_navbar.html.erb will be deprecated in future versions. Please use Blacklight configuration to specify your HeaderComponent.") %> +<% end %> \ No newline at end of file