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