Sha256: d15a6b2a428b1b3d56e8e2a22665902360d2625a4ece8906ca9f6c759c83e589

Contents?: true

Size: 734 Bytes

Versions: 5

Compression:

Stored size: 734 Bytes

Contents

<% if show_sort_and_per_page? and !blacklight_config.per_page.blank? %>
<span class="sr-only"><%= t('blacklight.search.per_page.title') %></span>
<div id="per_page-dropdown" class="per-page-dropdown btn-group">
  <button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
    <%= t(:'blacklight.search.per_page.button_label', :count => current_per_page) %> <span class="caret"></span>
  </button>
  <div class="dropdown-menu dropdown-menu-right" role="menu">
    <%- per_page_options_for_select.each do |(label, count)| %>
      <%= link_to(label, url_for(search_state.params_for_search(per_page: count)), 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/_per_page_widget.html.erb
blacklight-7.1.0.alpha app/views/catalog/_per_page_widget.html.erb
blacklight-7.0.1 app/views/catalog/_per_page_widget.html.erb
blacklight-7.0.0 app/views/catalog/_per_page_widget.html.erb
blacklight-7.0.0.rc2 app/views/catalog/_per_page_widget.html.erb