Sha256: 76c4a49ad03bcb32eb70f78e95351495112ed551ddeea8a4834d631dad0477e0

Contents?: true

Size: 858 Bytes

Versions: 63

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

63 entries across 63 versions & 2 rubygems

Version Path
sidekiq-6.5.12 web/views/_paging.erb
sidekiq-6.5.11 web/views/_paging.erb
sidekiq-6.5.10 web/views/_paging.erb
sidekiq-6.5.9 web/views/_paging.erb
sidekiq-7.0.2 web/views/_paging.erb
sidekiq-7.0.1 web/views/_paging.erb
sidekiq-6.5.8 web/views/_paging.erb
sidekiq-7.0.0 web/views/_paging.erb
sidekiq-7.0.0.beta1 web/views/_paging.erb
sidekiq-6.5.7 web/views/_paging.erb
sidekiq-6.5.6 web/views/_paging.erb
sidekiq-6.5.5 web/views/_paging.erb
sidekiq-6.5.4 web/views/_paging.erb
sidekiq-6.5.3 web/views/_paging.erb
sidekiq-6.5.2 web/views/_paging.erb
sidekiq-6.5.1 web/views/_paging.erb
sidekiq-6.5.0 web/views/_paging.erb
sidekiq-6.4.2 web/views/_paging.erb
sidekiq-6.4.1 web/views/_paging.erb
sidekiq-5.2.10 web/views/_paging.erb