Sha256: 45480450126198b50d9cb107741db235ce6c412a90e7b1ba8ebd0a9fae043d16

Contents?: true

Size: 1.13 KB

Versions: 32

Compression:

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

Version data entries

32 entries across 32 versions & 10 rubygems

Version Path
SFEley-browsercms-3.0.2 app/views/cms/shared/_pagination.html.erb
buzzware-browsercms-3.0.2 app/views/cms/shared/_pagination.html.erb
coredumplings-browsercms-3.0.0 app/views/cms/shared/_pagination.html.erb
nate-browsercms-3.0.210 app/views/cms/shared/_pagination.html.erb
nate-browsercms-3.0.211 app/views/cms/shared/_pagination.html.erb
we5-browsercms-3.0.1.1 app/views/cms/shared/_pagination.html.erb
webficient-browsercms-3.0.1 app/views/cms/shared/_pagination.html.erb
webficient-browsercms-3.0.2 app/views/cms/shared/_pagination.html.erb
webficient-browsercms-3.0.3 app/views/cms/shared/_pagination.html.erb
webficient-browsercms-3.0.4 app/views/cms/shared/_pagination.html.erb
browsercms-3.1.5 app/views/cms/shared/_pagination.html.erb
browsercms-3.1.4 app/views/cms/shared/_pagination.html.erb
browsercms-3.1.3 app/views/cms/shared/_pagination.html.erb
bf4-browsercms-3.1.0 app/views/cms/shared/_pagination.html.erb
drujensen-browsercms-3.2.0 app/views/cms/shared/_pagination.html.erb
browsercms-3.1.2 app/views/cms/shared/_pagination.html.erb
browsercms-3.1.1 app/views/cms/shared/_pagination.html.erb
browsercms-3.1.0 app/views/cms/shared/_pagination.html.erb
we5-browsercms-3.1.0 app/views/cms/shared/_pagination.html.erb
browsercms-3.0.6 app/views/cms/shared/_pagination.html.erb