Sha256: d9c2629e8424d8e1b6c9967f0f3d07a52d586da9d98f5a9b579d934092fc63a2

Contents?: true

Size: 1.39 KB

Versions: 11

Compression:

Stored size: 1.39 KB

Contents

<% if @pagination && @pagination.paginate? %>
  <div id="pagination" class="container mb-4">
    <div class="row">
      <nav>
        <ul class="pagination justify-content-center">
          <li class="page-item <%= 'disabled' unless @pagination.first_offset? %>">
            <a class="page-link" href="<%= current_path(@pagination.offset_key => @pagination.first_offset) %>">
              <span>&laquo;</span>
            </a>
          </li>

          <li class="page-item <%= 'disabled' unless @pagination.previous_offset? %>">
            <a class="page-link" href="<%= current_path(@pagination.offset_key => @pagination.previous_offset) %>">
              <span>&lsaquo; Prev</span>
            </a>
          </li>

          <% if @pagination.current_offset? %>
            <li class="page-item active disabled">
              <a class="page-link" href="<%= current_path(@pagination.offset_key => @pagination.current_offset) %>">
                <span>
                  <%= @pagination.current_label %>
                </span>
              </a>
            </li>
          <% end %>

          <li class="page-item <%= 'disabled' unless @pagination.next_offset? %>">
            <a class="page-link" href="<%= current_path(@pagination.offset_key => @pagination.next_offset) %>">
              <span>Next &rsaquo;</span>
            </a>
          </li>
        </ul>
      </nav>
    </div>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
karafka-web-0.7.10 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.9 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.8 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.7 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.6 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.5 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.4 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.3 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.2 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.1 lib/karafka/web/ui/views/shared/_pagination.erb
karafka-web-0.7.0 lib/karafka/web/ui/views/shared/_pagination.erb