Sha256: fedba0471722fdb73bafcaded686547d313f91aed76a1906bbc9295b61e6031d

Contents?: true

Size: 1.4 KB

Versions: 23

Compression:

Stored size: 1.4 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_(:records_found, :count => page.pager.count,
:model => record_select_config.model.model_name.human(:count => page.pager.count).downcase) %></li>
  <% if page.prev? -%>
  <li class="pagination previous">
    <%= link_to image_tag('record_select/previous.gif', :alt => rs_(:previous)) + " " + rs_(:previous_items,
:count => 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_items, :count => 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

23 entries across 23 versions & 2 rubygems

Version Path
recordselect_vho-4.0.0 app/views/record_select/_list.html.erb
recordselect_vho-3.1.104 app/views/record_select/_list.html.erb
recordselect_vho-3.1.103 app/views/record_select/_list.html.erb
recordselect-3.2.11 app/views/record_select/_list.html.erb
recordselect-3.2.10 app/views/record_select/_list.html.erb
recordselect-3.2.9 app/views/record_select/_list.html.erb
recordselect-3.2.8 app/views/record_select/_list.html.erb
recordselect-3.2.7 app/views/record_select/_list.html.erb
recordselect-3.2.6 app/views/record_select/_list.html.erb
recordselect_vho-3.1.102 app/views/record_select/_list.html.erb
recordselect-3.2.4 app/views/record_select/_list.html.erb
recordselect-3.2.3 app/views/record_select/_list.html.erb
recordselect-3.2.2 app/views/record_select/_list.html.erb
recordselect-3.2.1 app/views/record_select/_list.html.erb
recordselect-3.2.0 app/views/record_select/_list.html.erb
recordselect-3.1.9 app/views/record_select/_list.html.erb
recordselect_vho-3.1.101 app/views/record_select/_list.html.erb
recordselect-3.1.8 app/views/record_select/_list.html.erb
recordselect_vho-3.1.100 app/views/record_select/_list.html.erb
recordselect-3.1.7 app/views/record_select/_list.html.erb