Skip to content

Commit

Permalink
paginate tag page listings (publiclab#8243)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored and billymoroney1 committed Dec 28, 2021
1 parent b8b4d22 commit 9303b4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/tag_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def show
end

nodes = nodes.paginate(page: params[:page], per_page: 24).order(order_by)
@paginated = true

if @start && @end
nodes = nodes.where(created: @start.to_i..@end.to_i)
Expand Down

0 comments on commit 9303b4c

Please sign in to comment.