Sha256: 266bef612fc8ba50c7863ca0988b03238b8dbc5ce77b82634068c28b3532e9a1

Contents?: true

Size: 1.12 KB

Versions: 15

Compression:

Stored size: 1.12 KB

Contents

<% if show_sort_and_per_page? && collection_member_sort_fields.many? %>
  <%= form_tag collection_path(collection), method: :get, class: 'per_page form-horizontal' do %>
    <%= render 'view_type_group' %>
    <fieldset class="float-left">
      <legend class="sr-only"><%= t('hyrax.sort_label') %></legend>
      <%= label_tag(:sort, t('.sort_by_html')) %>
      <%= select_tag(:sort, options_from_collection_for_select(collection_member_sort_fields, 'first', lambda {|field| field.last.label}, h(params[:sort]))) %>
      <%= label_tag(:per_page) do %>
        <span class="tiny-nudge"><%= t('.results_per_page') %></span>
        <%= select_tag(:per_page, options_for_select(Hyrax.config.range_for_number_of_results_to_display_per_page, h(params[:per_page])), title: t('.number_of_results_to_display_per_page')) %>
      <% end %>
      <%= render Blacklight::HiddenSearchStateComponent.new(params: search_state.params_for_search.except(:per_page, :sort)) %>
      &nbsp;<button class="btn btn-sm btn-secondary tiny-nudge"><span class="fa fa-refresh"></span> <%= t('helpers.action.refresh') %></button>
    </fieldset>
  <% end %>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-5.0.4 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-5.0.3 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-5.0.2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-5.0.1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-5.0.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-4.0.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/collections/_sort_and_per_page.html.erb