Sha256: 6af9c437ea7b5b0227c0b22120dd8edbd1da366324cc5c1f8bbf656ed6a1401f
Contents?: true
Size: 1.17 KB
Versions: 19
Compression:
Stored size: 1.17 KB
Contents
<div class="pagination"> <div class="info"> Displaying <%= collection.offset + 1 %> - <%= collection.offset + collection.size %> of <%= collection.total_entries %> </div> <div class="links"> <%= link_to " ".html_safe, first_page_path, :id => "first_page_link" %> <%= link_to " ".html_safe, previous_page_path, :id => "previous_page_link" %> <span> <% url = URI.parse(current_page_path) %> <%= form_tag url.path, :method => :get, :class => "current_page" do %> <% url.query.to_s.split('&').each do |p|; k, v = p.split('=') %> <%= hidden_field_tag(k, CGI::unescape(v.to_s), :id => "pagination_hidden_#{k}") unless k == "page" %> <% end %> <%= label_tag "current_page_number", "Page" %> <%= text_field_tag "page", collection.current_page, :id => "current_page_number", :size => 3 %> of <strong> <%= collection.total_pages %> </strong> <% end %> </span> <%= link_to " ".html_safe, next_page_path, :id => "next_page_link" %> <%= link_to " ".html_safe, last_page_path, :id => "last_page_link" %> </div> <br clear="all"/> </div>
Version data entries
19 entries across 19 versions & 1 rubygems