Sha256: 4f41b65c2ce277142907dbeacac66bd1ca3b5efa26fcf91e5f703318dcba219b

Contents?: true

Size: 803 Bytes

Versions: 2

Compression:

Stored size: 803 Bytes

Contents

<% if @total_size > @count %>
  <ul class="pagination pull-right">
    <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>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-2.15.2 web/views/_paging.erb
sidekiq-2.15.1 web/views/_paging.erb