Sha256: 1b08e9e5b96efbe58965dc51aaeb43cffa78d3d89ad3a87ba2b2db42136a4fa7

Contents?: true

Size: 1.17 KB

Versions: 8

Compression:

Stored size: 1.17 KB

Contents

<p>
  Displaying
  <%= collection.offset + 1 %>
  -
  <%= collection.offset + collection.size %>
  of
  <%= collection.total_entries %>
</p>
<div>
  <%= link_to "<< &nbsp;".html_safe, first_page_path, :id => "first_page_link" %>
  <%= link_to "< &nbsp;".html_safe, previous_page_path, :id => "previous_page_link" %>
    <% url = URI.parse(current_page_path) %>
    <%= form_tag engine(content_type).polymorphic_path(build_path_for(content_type)), :method => :get, :class => "current_page", style: 'display:inline' 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", style: 'display:inline' %>
        <%= text_field_tag "page", collection.current_page, :id => "current_page_number", style: 'display:inline' %>
        <p style="display: inline">of
        <%= collection.total_pages %></p>
    <% end %>
  <%= 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>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
browsercms-artirix-4.0.4 app/views/cms/application/_pagination.html.erb
browsercms-artirix-4.0.3.3 app/views/cms/application/_pagination.html.erb
browsercms-artirix-4.0.3.2 app/views/cms/application/_pagination.html.erb
browsercms-artirix-4.0.3.1 app/views/cms/application/_pagination.html.erb
browsercms-artirix-4.0.3 app/views/cms/application/_pagination.html.erb
browsercms-artirix-4.0.2 app/views/cms/application/_pagination.html.erb
browsercms-artirix-4.0.1.1 app/views/cms/application/_pagination.html.erb
browsercms-artirix-4.0.0.rc1.art4 app/views/cms/application/_pagination.html.erb