Sha256: 278f4d1160cc590ac67b623839180e505c927962c834a8d5aec5ba0ece620f67

Contents?: true

Size: 581 Bytes

Versions: 12

Compression:

Stored size: 581 Bytes

Contents

<% if show_sort_and_per_page? and !blacklight_config.sort_fields.blank? %>
<div id="sort-dropdown" class="btn-group">
  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
      <%= link_to(t('blacklight.search.sort.label', :field =>current_sort_field.label), "#") %> <span class="caret"></span>
  </button>

  <ul class="dropdown-menu">
        <%- blacklight_config.sort_fields.each do |sort_key, field| %>
          <li><%= link_to(field.label, url_for(params_for_search(:sort => sort_key))) %></li>
        <%- end -%>
  </ul>
</div>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blacklight-5.3.0 app/views/catalog/_sort_widget.html.erb
blacklight-5.0.3 app/views/catalog/_sort_widget.html.erb
blacklight-5.1.1 app/views/catalog/_sort_widget.html.erb
blacklight-5.2.0 app/views/catalog/_sort_widget.html.erb
blacklight-5.1.0 app/views/catalog/_sort_widget.html.erb
blacklight-5.0.2 app/views/catalog/_sort_widget.html.erb
blacklight-5.0.1 app/views/catalog/_sort_widget.html.erb
blacklight-5.0.0 app/views/catalog/_sort_widget.html.erb
blacklight-5.0.0.pre4 app/views/catalog/_sort_widget.html.erb
blacklight-5.0.0.pre3 app/views/catalog/_sort_widget.html.erb
blacklight-5.0.0.pre2 app/views/catalog/_sort_widget.html.erb
blacklight-5.0.0.pre1 app/views/catalog/_sort_widget.html.erb