<nav class="navbar navbar-default sort-bar" role="navigation">
  <div class="container-fluid">
    <ul class="nav navbar-nav">
      <li>
        <%= link_to(("Category "), "#", :class => "dropdown-toggle", "data-toggle" => "dropdown") %>
        <%= render "shared/category_list" %>
      </li>
      <% @sort_type.each do |n| %>
        <li <%= "class=active" if params[:sort] == n %>><%= link_to n, ("?sort=" + n) %></li>
      <% end %>
    </ul>
    <form class="navbar-form navbar-right" role="search">
      <span class="icons-search search-icon"></span>
      <div class="form-group">
        <input type="text" class="form-control" placeholder="Search">
      </div>
    </form>
  </div>
</nav>