Skip to content

Commit

Permalink
Merge pull request #3488 from projectblacklight/bug-next-button
Browse files Browse the repository at this point in the history
fix paginator next_page_tag
  • Loading branch information
jcoyne authored Jan 9, 2025
2 parents 03ea265 + a07fb67 commit 7263fbf
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 7263fbf

Please sign in to comment.