Sha256: 2a7cace672ed2a512912ba399c81657812931527fd822b3bd1b6404eae46f810

Contents?: true

Size: 1.45 KB

Versions: 4

Compression:

Stored size: 1.45 KB

Contents

<nav class="navbar navbar-expand-md navbar-dark bg-dark topbar" role="navigation">
  <div class="<%= container_classes %>">
    <%= link_to application_name, root_path, class: 'mb-0 navbar-brand' %>
    <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="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse justify-content-md-end" id="user-util-collapse">
      <%= render 'shared/user_util_links' %>
    </div>
  </div>
</nav>

<% if controller_name == 'catalog' && (has_search_parameters? || params[:action] == 'show') %>
  <div class="navbar-search navbar navbar-light bg-faded" role="navigation">
    <div class="<%= container_classes %> stuff">
      <%= render_search_bar  %>
    </div>
  </div>
<% else %>
  <div class='geobl-homepage-masthead jumbotron'>
    <div class='d-flex justify-content-center'>
      <%= content_tag :h2, t('geoblacklight.home.headline'), class: 'text-center' %>
    </div>
    <div class='d-flex justify-content-center'>
      <%= content_tag :h3, t('geoblacklight.home.search_heading'), class: 'text-center' %>
    </div>
    <div class='row justify-content-md-center'>
      <div class='col-md-6 col-sm-12'>
        <div class='navbar-search'>
          <%= render_search_bar %>
        </div>
      </div>
    </div>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geoblacklight-2.1.2 app/views/shared/_header_navbar.html.erb
geoblacklight-2.1.1 app/views/shared/_header_navbar.html.erb
geoblacklight-2.1.0 app/views/shared/_header_navbar.html.erb
geoblacklight-2.0.0 app/views/shared/_header_navbar.html.erb