Sha256: 0afb765ef7d0c62e1eb81b90b291eee1fbf51c4f0eb42fe022f7b7d3b93743f3

Contents?: true

Size: 1.04 KB

Versions: 105

Compression:

Stored size: 1.04 KB

Contents

<% if @total_size > @count %>
  <ul class="pagination pull-right flip">
    <% _page_key = defined?(page_key) ? page_key.to_s : 'page' %>

    <li class="<%= 'disabled' if @current_page == 1 %>">
      <a href="<%= url %>?<%= _page_key %>=1">&laquo;</a>
    </li>
    <% if @current_page > 1 %>
      <li>
        <a href="<%= url %>?<%= (qparams(page: @current_page - 1) || '').gsub('page', _page_key) %>"><%= @current_page - 1 %></a>
      </li>
    <% end %>
    <li class="disabled">
      <a href="<%= url %>?<%= (qparams(page: @current_page) || '').gsub('page', _page_key) %>"><%= @current_page %></a>
    </li>
    <% if @total_size > @current_page * @count %>
      <li>
        <a href="<%= url %>?<%= (qparams(page: @current_page + 1) || '').gsub('page', _page_key) %>"><%= @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) || '').gsub('page', _page_key) %>">&raquo;</a>
    </li>
  </ul>
<% end %>

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.8 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.6 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.5 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.4 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.3 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.2 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.1 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.0 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.0.beta8 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.0.beta7 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.0.beta6 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.0.beta5 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.0.beta4 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.0.beta3 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.0.beta2 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.22.0.beta1 lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb
canvas_sync-0.21.1 lib/canvas_sync/job_batches/sidekiq/web/views/_pagination.erb
canvas_sync-0.21.1.beta1 lib/canvas_sync/job_batches/sidekiq/web/views/_pagination.erb
canvas_sync-0.21.0 lib/canvas_sync/job_batches/sidekiq/web/views/_pagination.erb