Issues pagination
This commit is contained in:
parent
1fefd7cbd3
commit
755a894c91
20 changed files with 107 additions and 5 deletions
|
@ -28,7 +28,7 @@ class IssuesController < ApplicationController
|
|||
when 2 then @project.issues.closed
|
||||
when 3 then @project.issues.opened.assigned(current_user)
|
||||
else @project.issues.opened
|
||||
end
|
||||
end.page(params[:page]).per(10)
|
||||
|
||||
@issues = @issues.includes(:author, :project)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue