Sha256: 2333f7db4543e21bf9d62c0d16d77d6a9480891e9c42f3300afe880c2c3d2c48
Contents?: true
Size: 1.33 KB
Versions: 13
Compression:
Stored size: 1.33 KB
Contents
<% controller ||= params[:controller] pagination_url_params = params.merge(:controller => controller, :action => :browse, :search => params[:search], :update => 1) prev_url = url_for(pagination_url_params.merge(:page => page.prev.number, :escape => false)) if page.prev? next_url = url_for(pagination_url_params.merge(:page => page.next.number, :escape => false)) if page.next? -%> <ol> <li class="found"><%= rs_("%d %s found", page.pager.count, record_select_config.model.to_s.pluralize.titleize.downcase) %></li> <% if page.prev? -%> <li class="pagination previous"> <%= link_to image_tag('record_select/previous.gif', :alt => rs_('Previous')) + " " + rs_("Previous %d", page.pager.per_page), {:url => prev_url}, {:href => prev_url, :method => :get, :remote => true} %> </li> <% end -%> <% page.items.each do |record| -%> <li class="record <%= cycle 'odd', 'even' %>" id="rs<%= record.id -%>"> <%= render_record_in_list(record, controller) %> </li> <% end -%> <% if page.next? -%> <li class="pagination next"> <%= link_to (rs_("Next %d", page.pager.per_page) + " " + image_tag('record_select/next.gif', :alt => rs_('Next'))).html_safe, {:url => next_url}, {:href => next_url, :method => :get, :remote => true} %> </li> <% end -%> </ol>
Version data entries
13 entries across 13 versions & 2 rubygems