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.0.2 web/views/_paging.erb
sidekiq-4.0.1 web/views/_paging.erb
sidekiq-4.0.0 web/views/_paging.erb
roundhouse-x-0.3.1 web/views/_paging.erb
sidekiq-4.0.0.pre2 web/views/_paging.erb
sidekiq-3.5.3 web/views/_paging.erb
sidekiq-4.0.0.pre1 web/views/_paging.erb
sidekiq-3.5.2 web/views/_paging.erb
sidekiq-3.5.1 web/views/_paging.erb
roundhouse-x-0.2.0 web/views/_paging.erb
sidekiq-3.5.0 web/views/_paging.erb
roundhouse-x-0.1.0 web/views/_paging.erb
sidekiq-3.4.2 web/views/_paging.erb
sidekiq-3.4.1 web/views/_paging.erb
sidekiq-3.4.0 web/views/_paging.erb
sidekiq-3.3.4 web/views/_paging.erb
sidekiq-3.3.3 web/views/_paging.erb
sidekiq-3.3.2 web/views/_paging.erb
sidekiq-3.3.1 web/views/_paging.erb
sidekiq-3.3.0 web/views/_paging.erb