<div id="header-navbar" class="navbar navbar-static-top" 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">Toggle navigation</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <%= link_to application_name, root_path, class: "navbar-brand" %>
    </div>

    <div class="collapse navbar-collapse" id="user-util-collapse">
      <%= render :partial=>'/user_util_links' %>
    </div>
  </div>
</div>

<% if controller_name == 'catalog' && has_search_parameters? %>
  <div id="search-navbar" class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">
      <%= render_search_bar  %>
    </div>
  </div>
<% end %>