Sha256: 477a3c9e5fc81f09e318a868d52e405e54fc181cd9fd7494bbb9f322508450c1

Contents?: true

Size: 1.1 KB

Versions: 20

Compression:

Stored size: 1.1 KB

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, "Sort by" %>
      <%= select_tag(
        :sort,
        options_for_select(
          sort_fields,
          h(params[:sort])
        ),
        :class => "input-medium"
      )%>

    <%= 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",
        :class => "input-small"
      )%>
      per page
    <% end %>

      <%= search_as_hidden_fields(:omit_keys => [:per_page, :sort]) %>

      <button class="btn btn-primary pull-right">
        <i class="icon-refresh icon-white"></i> Update
      </button>
    </div>

  <% end %>
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/catalog/_sort_and_per_page.html.erb
curate-0.6.5 app/views/catalog/_sort_and_per_page.html.erb
curate-0.6.4 app/views/catalog/_sort_and_per_page.html.erb
curate-0.6.3 app/views/catalog/_sort_and_per_page.html.erb
curate-0.6.1 app/views/catalog/_sort_and_per_page.html.erb
curate-0.6.0 app/views/catalog/_sort_and_per_page.html.erb
curate-0.5.6 app/views/catalog/_sort_and_per_page.html.erb
curate-0.5.5 app/views/catalog/_sort_and_per_page.html.erb
curate-0.5.4 app/views/catalog/_sort_and_per_page.html.erb
curate-0.5.2 app/views/catalog/_sort_and_per_page.html.erb
curate-0.5.1 app/views/catalog/_sort_and_per_page.html.erb
curate-0.5.0 app/views/catalog/_sort_and_per_page.html.erb
curate-0.4.2 app/views/catalog/_sort_and_per_page.html.erb
curate-0.3.2 app/views/catalog/_sort_and_per_page.html.erb
curate-0.3.1 app/views/catalog/_sort_and_per_page.html.erb
curate-0.2.0 app/views/catalog/_sort_and_per_page.html.erb
curate-0.1.3 app/views/catalog/_sort_and_per_page.html.erb
curate-0.1.2 app/views/catalog/_sort_and_per_page.html.erb
curate-0.1.1 app/views/catalog/_sort_and_per_page.html.erb
curate-0.1.0 app/views/catalog/_sort_and_per_page.html.erb