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.4.0 web/views/_paging.erb
sidekiq-6.3.1 web/views/_paging.erb
sidekiq-6.3.0 web/views/_paging.erb
sidekiq-6.2.2 web/views/_paging.erb
sidekiq-6.2.1 web/views/_paging.erb
sidekiq-6.2.0 web/views/_paging.erb
sidekiq-6.1.3 web/views/_paging.erb
sidekiq-6.1.2 web/views/_paging.erb
sidekiq-6.1.1 web/views/_paging.erb
sidekiq-6.1.0 web/views/_paging.erb
sidekiq-5.2.9 web/views/_paging.erb
sidekiq-6.0.7 web/views/_paging.erb
sidekiq-6.0.6 web/views/_paging.erb
sidekiq-6.0.5 web/views/_paging.erb
sidekiq-5.2.8 web/views/_paging.erb
sidekiq-6.0.4 web/views/_paging.erb
sidekiq-6.0.3 web/views/_paging.erb
sidekiq_cleaner-5.3.8 cleaner/views/_paging.erb
sidekiq-6.0.2 web/views/_paging.erb
sidekiq-6.0.1 web/views/_paging.erb