Sha256: 919cb8e98b6a59951b88917888f2bc3455b1e58f6f98751008ebba4c416a92b1

Contents?: true

Size: 998 Bytes

Versions: 49

Compression:

Stored size: 998 Bytes

Contents

<% unless @response.response['numFound'] < 2 %>
    <%-# 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 -%>
    <%= form_tag params[:controller] == "folder" ? folder_index_path : catalog_index_path, :method => :get, :class => "well form-inline" do %>
  <div class="sorting">
      <%= label_tag(:sort, "<strong>Sort by</strong> ".html_safe) %>
      <%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort])), :class => "input-medium") %>

      <%= label_tag(:per_page) do %>
        <strong>Show</strong> <%= select_tag(:per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])), :title => "Number of results to display per page", :class => "input-small")  %> per page
        <% end %>
      <%= search_as_hidden_fields(:omit_keys => [:per_page, :sort]) %>
      <button class="btn btn-primary"><i class="icon-refresh"></i> Update</button>

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

Version data entries

49 entries across 34 versions & 1 rubygems

Version Path
sufia-3.7.0 spec/controllers/_sort_and_per_page.html.erb
sufia-3.6.1 spec/controllers/_sort_and_per_page.html.erb
sufia-3.6.0 spec/controllers/_sort_and_per_page.html.erb
sufia-3.5.0 spec/controllers/_sort_and_per_page.html.erb
sufia-3.4.0 spec/controllers/_sort_and_per_page.html.erb
sufia-3.4.0.rc4 spec/controllers/_sort_and_per_page.html.erb
sufia-3.4.0.rc3 spec/controllers/_sort_and_per_page.html.erb
sufia-3.3.1 spec/controllers/_sort_and_per_page.html.erb
sufia-3.4.0.rc2 spec/controllers/_sort_and_per_page.html.erb
sufia-3.4.0.rc1 spec/controllers/_sort_and_per_page.html.erb
sufia-3.3.0 spec/controllers/_sort_and_per_page.html.erb
sufia-3.2.1 spec/controllers/_sort_and_per_page.html.erb
sufia-3.1.3 spec/controllers/_sort_and_per_page.html.erb
sufia-3.1.2 spec/controllers/_sort_and_per_page.html.erb
sufia-3.1.1 spec/controllers/_sort_and_per_page.html.erb
sufia-3.1.0 spec/controllers/_sort_and_per_page.html.erb
sufia-3.0.0 spec/controllers/_sort_and_per_page.html.erb
sufia-2.0.1 spec/controllers/_sort_and_per_page.html.erb
sufia-2.0.0 spec/controllers/_sort_and_per_page.html.erb
sufia-1.3.0 app/views/catalog/_sort_and_per_page.html.erb