Skip to content

Commit

Permalink
AO3-5889 Paginate pseuds using default per page setting
Browse files Browse the repository at this point in the history
  • Loading branch information
neuroalien committed Jul 8, 2023
1 parent 09c7c2f commit 011654b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/pseuds_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def load_user
# GET /pseuds.xml
def index
if @user
@pseuds = @user.pseuds
@pseuds = @user.pseuds.paginate(page: params[:page])
@rec_counts = Pseud.rec_counts_for_pseuds(@pseuds)
@work_counts = Pseud.work_counts_for_pseuds(@pseuds)
@page_subtitle = @user.login
Expand Down
8 changes: 7 additions & 1 deletion app/views/pseuds/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<% end %>
<!--/subnav-->

<!--subnav-->
<%= will_paginate @pseuds %>
<!--/subnav-->

<!--main content-->
<h3 class="landmark heading"><%= ts("List of Pseuds") %></h3>
<ul class="pseud index group">
Expand All @@ -20,4 +24,6 @@
</ul>
<!--/content-->


<!--subnav-->
<%= will_paginate @pseuds %>
<!--/subnav-->

0 comments on commit 011654b

Please sign in to comment.