Sha256: 8d129b7607f0c8300c4884ef6db6a11fd668eb176237411bbe33bd470c2bd4d0

Contents?: true

Size: 858 Bytes

Versions: 5

Compression:

Stored size: 858 Bytes

Contents

<% if @total_size > @count %>
  <ul class="pagination pull-right flip">
    <li class="<%= "disabled" if @current_page == 1 %>">
      <a href="<%= url %>?page=1">&laquo;</a>
    </li>
    <% if @current_page > 1 %>
      <li>
        <a href="<%= url %>?<%= qparams(page: @current_page - 1) %>"><%= @current_page - 1 %></a>
      </li>
    <% end %>
    <li class="disabled">
      <a href="<%= url %>?<%= qparams(page: @current_page) %>"><%= @current_page %></a>
    </li>
    <% if @total_size > @current_page * @count %>
      <li>
        <a href="<%= url %>?<%= qparams(page: @current_page + 1) %>"><%= @current_page + 1 %></a>
      </li>
    <% end %>
    <li class="<%= "disabled" if @total_size <= @current_page * @count %>">
      <a href="<%= url %>?<%= qparams(page: (@total_size.to_f / @count).ceil) %>">&raquo;</a>
    </li>
  </ul>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
atomic-sidekiq-1.3.0 web/views/_paging.erb
atomic-sidekiq-1.2.0 web/views/_paging.erb
atomic-sidekiq-1.1.4 web/views/_paging.erb
atomic-sidekiq-1.1.3 web/views/_paging.erb
atomic-sidekiq-1.1.2 web/views/_paging.erb