Sha256: 370a34ff5ab6491ee5edba40111829ec33a7a7d11fbf0fc13d650e80d24408e1

Contents?: true

Size: 655 Bytes

Versions: 5

Compression:

Stored size: 655 Bytes

Contents

<% if show_sort_and_per_page? and active_sort_fields.many? %>
<div id="sort-dropdown" class="sort-dropdown btn-group">
  <button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
      <%= t('blacklight.search.sort.label', :field =>sort_field_label(current_sort_field.key)) %> <span class="caret"></span>
  </button>

  <div class="dropdown-menu" role="menu">
    <%- active_sort_fields.each do |sort_key, field_config| %>
      <%= link_to(sort_field_label(sort_key), url_for(search_state.params_for_search(sort: sort_key)), class: 'dropdown-item') %>
    <%- end -%>
  </div>
</div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-7.1.0 app/views/catalog/_sort_widget.html.erb
blacklight-7.1.0.alpha app/views/catalog/_sort_widget.html.erb
blacklight-7.0.1 app/views/catalog/_sort_widget.html.erb
blacklight-7.0.0 app/views/catalog/_sort_widget.html.erb
blacklight-7.0.0.rc2 app/views/catalog/_sort_widget.html.erb