Sha256: 3773f48210f086a204ae3cf68bf9fba8ab17dc28932b93aad0479e769f645bbf

Contents?: true

Size: 746 Bytes

Versions: 7

Compression:

Stored size: 746 Bytes

Contents

  <div class="sort-toggle">
    <% if @response.response['numFound'] > 1 %>
      <%= form_tag search_action_for_dashboard, method: :get, class: 'per_page form-inline' do %>
            <div class="form-group">
              <fieldset class="col-xs-12">
                <%= label_tag :per_page do %>
                    Show <%= select_tag :per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])),
                                        title: "Number of results to display per page" %> per page
                <% end %>
                <%= render_hash_as_hidden_fields(search_state.params_for_search.except(:per_page, :sort, :utf8)) %>
              </fieldset>
            </div>

      <% end %>
    <% end %>
  </div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-2.0.0.rc2 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-2.0.0.rc1 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-2.0.0.beta5 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-2.0.0.beta4 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-2.0.0.beta3 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-2.0.0.beta2 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-2.0.0.beta1 app/views/hyrax/my/_sort_and_per_page.html.erb