diff options
Diffstat (limited to 'views/pagination.erb')
-rw-r--r-- | views/pagination.erb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/views/pagination.erb b/views/pagination.erb index af43309..caf9d08 100644 --- a/views/pagination.erb +++ b/views/pagination.erb @@ -1,37 +1,37 @@ <nav class="pull-right"> <ul class="pagination ag-pager"> <% if current_page == 1 %> - <li class="disabled"> - <a href="#" aria-label="Previous"> + <li class="page-item disabled"> + <a class="page-link" href="#" aria-label="Previous"> <span aria-hidden="true">«</span> </a> <% else %> - <li> - <a href="<%= current_page - 1 %>" aria-label="Previous"> + <li class="page-item"> + <a class="page-link" href="<%= current_page - 1 %>" aria-label="Previous"> <span aria-hidden="true">«</span> </a> <% end %> </li> <% min = [1, current_page - 3].max ; max = [max_pages, current_page + 3].min %> <% if min > 3 %> - <li><a href="1">1</a></li> - <li class="disabled"><a href="#">…</a></li> + <li class="page-item"><a class="page-link" href="1">1</a></li> + <li class="page-item disabled"><a class="page-link" href="#">…</a></li> <% end %> <% (min..max).each do |page| %> - <li <% if page == current_page %><%= 'class="active"' %><% end %>><a href="<%= page %>"><%= page %></a></li> + <li <% if page == current_page %><%= 'class="page-item active"' %><% end %>><a class="page-link" href="<%= page %>"><%= page %></a></li> <% end %> <% if (max_pages - max) > 3 %> - <li class="disabled"><a href="#">…</a></li> - <li><a href="<%= max_pages %>"><%= max_pages %></a></li> + <li class="page-item disabled"><a class="page-link" href="#">…</a></li> + <li class="page-item"><a class="page-link" href="<%= max_pages %>"><%= max_pages %></a></li> <% end %> <% if current_page == max_pages %> - <li class="disabled"> - <a href="#" aria-label="Next"> + <li class="page-item disabled"> + <a class="page-link" href="#" aria-label="Next"> <span aria-hidden="true">»</span> </a> <% else %> - <li> - <a href="<%= current_page + 1 %>" aria-label="Next"> + <li class="page-item"> + <a class="page-link" href="<%= current_page + 1 %>" aria-label="Next"> <span aria-hidden="true">»</span> </a> <% end %> |