Sha256: 07e04f4fadc658277aafdef771fd2d502e2f36619cb5ec3c84ec4f29a882d77a
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
<%# Copyright © 2012 The Pennsylvania State University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. %> <div class="batch-info"> <% session[:batch_edit_state] = "on" %> <%=batch_delete%> <%=batch_edit_continue("Edit Selected") %> <% 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 : dashboard_path, :method=>:get, :class=>'per_page form-inline' do %> <%= label_tag(:sort, "<span>Sort By:</span>".html_safe) %> <%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort])), :class => "span15") %> <%= 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 => "span10") %> per page <% end %> <%= search_as_hidden_fields(:omit_keys => [:per_page, :sort]) %> <button class="btn btn-primary"><i class="icon-refresh"></i> Update</button> <% end unless sort_fields.empty? %> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sufia-0.0.1.pre2 | app/views/dashboard/_sort_and_per_page.html.erb |
sufia-0.0.1.pre1 | app/views/dashboard/_sort_and_per_page.html.erb |