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