Pagination for Merge Requests. Fixed for issues
This commit is contained in:
parent
755a894c91
commit
52d8ed9e4f
6 changed files with 24 additions and 17 deletions
|
@ -28,9 +28,9 @@ class IssuesController < ApplicationController
|
|||
when 2 then @project.issues.closed
|
||||
when 3 then @project.issues.opened.assigned(current_user)
|
||||
else @project.issues.opened
|
||||
end.page(params[:page]).per(10)
|
||||
end.page(params[:page]).per(20)
|
||||
|
||||
@issues = @issues.includes(:author, :project)
|
||||
@issues = @issues.includes(:author, :project).order("critical, updated_at")
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue