Sha256: a139265925d98e2b949bdf0843387495e3b096b2cd3ad3956e2be6f33895fab7

Contents?: true

Size: 1.1 KB

Versions: 12

Compression:

Stored size: 1.1 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="pull-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_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> <%= t('helpers.action.refresh') %></button>
    </fieldset>
  <% end %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.5.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.4.2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.4.1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.4.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.3.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.2.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.1.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.0.2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.0.1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.0.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-3.0.0.pre.rc4 app/views/hyrax/collections/_sort_and_per_page.html.erb