Sha256: 1b88df7d25a75baac52b5ab1082c3b5b82bf0273eb90bdce08d04c34bfa81cb1

Contents?: true

Size: 1.02 KB

Versions: 33

Compression:

Stored size: 1.02 KB

Contents

<% if show_sort_and_per_page? && active_sort_fields.many? %>
  <%= form_tag collection_path(collection), method: :get, class: 'per_page form-horizontal' do %>
    <%= render 'view_type_group' %>
    <fieldset class="pull-left">
      <legend class="sr-only"><%= t('hyrax.sort_label') %></legend>
      <%= label_tag(:sort, '<span>Sort by:</span>'.html_safe) %>
      <%= select_tag(:sort, options_from_collection_for_select(active_sort_fields, 'first', lambda {|field| field.last.label}, h(params[:sort]))) %>
      <%= label_tag(:per_page) do %>
        <span class="tiny-nudge">Results per page:</span>
        <%= select_tag(:per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])), title: "Number of results to display per page") %>
      <% end %>
      <%= render_hash_as_hidden_fields(search_state.params_for_search.except(:per_page, :sort)) %>
      &nbsp;<button class="btn btn-xs btn-default tiny-nudge"><span class="glyphicon glyphicon-refresh"></span> Refresh</button>
    </fieldset>
  <% end %>
<% end %>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.9.5 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.9.4 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.9.3 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.9.2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.9.1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.9.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.8.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.7.2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.7.1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.7.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.6.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.5.1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.5.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.0.0.pre.beta2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.4.1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.0.0.pre.beta1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.4.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.3.3 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.3.2 app/views/hyrax/collections/_sort_and_per_page.html.erb