Sha256: 79b6e28ee84c27c02609adcca157136293fcbdf24ed1bbb65734efbd716ad0a2

Contents?: true

Size: 853 Bytes

Versions: 66

Compression:

Stored size: 853 Bytes

Contents

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

66 entries across 66 versions & 3 rubygems

Version Path
sidekiq-4.2.10 web/views/_paging.erb
sidekiq-5.0.0.beta2 web/views/_paging.erb
sidekiq-5.0.0.beta1 web/views/_paging.erb
sidekiq-4.2.9 web/views/_paging.erb
sidekiq-4.2.8 web/views/_paging.erb
sidekiq-4.2.7 web/views/_paging.erb
sidekiq-4.2.6 web/views/_paging.erb
sidekiq-4.2.5 web/views/_paging.erb
sidekiq-4.2.4 web/views/_paging.erb
sidekiq-4.2.3 web/views/_paging.erb
sidekiq-4.2.2 web/views/_paging.erb
sidekiq-4.2.1 web/views/_paging.erb
sidekiq-4.2.0 web/views/_paging.erb
sidekiq-4.1.4 web/views/_paging.erb
sidekiq-4.1.3 web/views/_paging.erb
sr-sidekiq-4.1.6 web/views/_paging.erb
sidekiq-4.1.2 web/views/_paging.erb
sidekiq-4.1.1 web/views/_paging.erb
sidekiq-4.1.0 web/views/_paging.erb
sidekiq-3.5.4 web/views/_paging.erb