Sha256: d8c81d342b55563181da3b8f86429723664b398d1a197c649ff8853046afe0b8

Contents?: true

Size: 868 Bytes

Versions: 3

Compression:

Stored size: 868 Bytes

Contents

<% if @total_size > @count %>
  <div class="pagination pagination-right">
    <ul>
      <li class="<%= 'disabled' if @current_page == 1 %>">
        <a href="<%= url %>?page=1">«</a>
      </li>
      <% if @current_page > 1 %>
        <li>
          <a href="<%= url %>?page=<%= @current_page - 1 %>"><%= @current_page - 1 %></a>
        </li>
      <% end %>
      <li class="disabled">
        <a href="<%= url %>?page=<%= @current_page %>"><%= @current_page %></a>
      </li>
      <% if @total_size > @current_page * @count %>
        <li>
          <a href="<%= url %>?page=<%= @current_page + 1 %>"><%= @current_page + 1 %></a>
        </li>
      <% end %>
      <li class="<%= 'disabled' if @total_size <= @current_page * @count %>">
        <a href="<%= url %>?page=<%= (@total_size.to_f / @count).ceil %>">»</a>
      </li>
    </ul>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-2.15.0 web/views/_paging.erb
sidekiq-2.14.1 web/views/_paging.erb
sidekiq-2.14.0 web/views/_paging.erb