Fix double paging
This commit is contained in:
parent
9bf85c01a9
commit
1a9630acc5
|
@ -50,7 +50,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController
|
|||
|
||||
format.json do
|
||||
render json: {
|
||||
html: view_to_html_string("dashboard/projects/projects", locals: { projects: @projects })
|
||||
html: view_to_html_string("dashboard/projects/_projects", locals: { projects: @projects })
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
@ -13,4 +13,3 @@
|
|||
= render 'filter'
|
||||
|
||||
= render 'projects', projects: @projects
|
||||
= paginate @projects, theme: "gitlab"
|
||||
|
|
|
@ -8,4 +8,3 @@
|
|||
|
||||
= render 'explore/projects/nav'
|
||||
= render 'projects', projects: @projects
|
||||
= paginate @projects, theme: 'gitlab' if @projects
|
||||
|
|
Loading…
Reference in New Issue