Sha256: 36995a4d91658b093dc70c24dba25233e4f174a98400e3eeaddf6ed2284a82bc

Contents?: true

Size: 1.4 KB

Versions: 12

Compression:

Stored size: 1.4 KB

Contents

<div class="batch-info">
   <div class="sort-toggle">
     <%# kind of hacky way to get this to work on catalog and folder controllers.  May be able to simple do {action: "index"} but I'm not sure -%>
     <% if @response.response['numFound'] > 1 && !sort_fields.empty? %>
        <%= form_tag collection_path(collection), method: :get, class: 'per_page form-horizontal' do %>
             <div class="form-group form-group-lg">
               <fieldset class="col-xs-12 col-sm-9 col-md-8 col-lg-10">
                 <legend class="sr-only"><%= t('hyrax.sort_label') %></legend>
                 <%= label_tag(:sort, "<span>Sort By:</span>".html_safe) %>
                 <%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort]))) %>
                 <%= 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)) %>
                 &nbsp;&nbsp;&nbsp;
                 <button class="btn btn-info"><span class="glyphicon glyphicon-refresh"></span> Refresh</button>
               </fieldset>
               <%= render 'view_type_group' %>
             </div>
         <% end %>
      <% end %>
   </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.0 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.0.rc3 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.0.rc2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.0.rc1 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.0.beta5 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.0.beta4 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.0.beta3 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.0.beta2 app/views/hyrax/collections/_sort_and_per_page.html.erb
hyrax-2.0.0.beta1 app/views/hyrax/collections/_sort_and_per_page.html.erb