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 "&nbsp;".html_safe, first_page_path, :id => "first_page_link" %>
    <%= link_to "&nbsp;".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 "&nbsp;".html_safe, next_page_path, :id => "next_page_link" %>
    <%= link_to "&nbsp;".html_safe, last_page_path, :id => "last_page_link" %>
  </div>
  <br clear="all"/>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.6 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.5 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.4 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.3 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.2 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.1 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.0 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.0.rc3 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.0.rc2 app/views/cms/shared/_pagination.html.erb
browsercms-3.5.0.rc1 app/views/cms/shared/_pagination.html.erb
browsercms-3.4.2 app/views/cms/shared/_pagination.html.erb
browsercms-3.3.4 app/views/cms/shared/_pagination.html.erb
browsercms-3.4.2.rc1 app/views/cms/shared/_pagination.html.erb
browsercms-3.4.1 app/views/cms/shared/_pagination.html.erb
browsercms-3.4.0 app/views/cms/shared/_pagination.html.erb
browsercms-3.4.0.rc2 app/views/cms/shared/_pagination.html.erb
browsercms-3.4.0.rc1 app/views/cms/shared/_pagination.html.erb
browsercms-3.3.3 app/views/cms/shared/_pagination.html.erb