Skip to content

Commit

Permalink
fix paginator next_page_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Jan 9, 2025
1 parent 03ea265 commit a07fb67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/kaminari/blacklight/_paginator.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
<%= paginator.render do -%>
<ul class="pagination">
<%= prev_page_tag %>
<%= next_page_tag if Blacklight::Engine.config.blacklight.paginator[:next_page_position] == :before %>
<%= next_page_tag if Blacklight::Engine.config.blacklight.paginator[:next_button_position] == :before %>
<% each_relevant_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 if Blacklight::Engine.config.blacklight.paginator[:next_page_position] == :after %>
<%= next_page_tag if Blacklight::Engine.config.blacklight.paginator[:next_button_position] == :after %>
</ul>
<% end -%>

0 comments on commit a07fb67

Please sign in to comment.