paginate list history
This commit is contained in:
@@ -198,7 +198,7 @@ class UserController < ApplicationController
|
||||
# Displays the closed lists of the user
|
||||
# GET /user/list_history
|
||||
def list_history
|
||||
@lists = current_user.lists
|
||||
@lists = List.for_user(current_user, page: params[:page], per_page: params[:per_page].presence || 14)
|
||||
render layout: 'phone'
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user