2025-01-05 17:50:33 +08:00
|
|
|
<%= paginator.render do -%>
|
2025-01-17 17:08:07 +08:00
|
|
|
<div class="join pagination">
|
2025-01-05 17:50:33 +08:00
|
|
|
<%= first_page_tag unless current_page.first? %>
|
|
|
|
<%= prev_page_tag unless current_page.first? %>
|
|
|
|
<% each_page do |page| -%>
|
|
|
|
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
|
|
|
<%= page_tag page %>
|
|
|
|
<% elsif !page.was_truncated? -%>
|
|
|
|
<%= gap_tag %>
|
|
|
|
<% end -%>
|
|
|
|
<% end -%>
|
|
|
|
<%= next_page_tag unless current_page.last? %>
|
|
|
|
<%= last_page_tag unless current_page.last? %>
|
2025-01-17 15:22:13 +08:00
|
|
|
</div>
|
2025-01-05 17:50:33 +08:00
|
|
|
<% end -%>
|