sferik/rails_admin

View on GitHub
app/views/kaminari/ra-twitter-bootstrap/_paginator.html.erb

Summary

Maintainability
Test Coverage
<%= paginator.render do %>
  <nav aria-label="Page navigation">
    <ul class="pagination">
      <%= prev_page_tag %>
      <% each_page do |page| %>
        <% if page.left_outer? or page.right_outer? or page.inside_window? %>
          <%= page_tag page %>
        <% elsif !page.was_truncated? %>
          <%= gap_tag %>
        <% end %>
      <% end %>
      <%= next_page_tag %>
    </ul>
  </nav>
<% end %>