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

Version Path
recordselect-3.0.5 app/views/record_select/_list.html.erb
recordselect_vho-3.0.206 app/views/record_select/_list.html.erb
recordselect_vho-3.0.205 app/views/record_select/_list.html.erb
recordselect_vho-3.0.204 app/views/record_select/_list.html.erb
recordselect-3.1.3 app/views/record_select/_list.html.erb
recordselect-3.1.2 app/views/record_select/_list.html.erb
recordselect-3.1.1 app/views/record_select/_list.html.erb
recordselect-3.1.0 app/views/record_select/_list.html.erb
recordselect-3.0.4 app/views/record_select/_list.html.erb
recordselect_vho-3.0.3 app/views/record_select/_list.html.erb
recordselect_vho-3.0.2 app/views/record_select/_list.html.erb
recordselect_vho-3.0.1 app/views/record_select/_list.html.erb
recordselect_vho-3.0.0 app/views/record_select/_list.html.erb