Fix double paging

This commit is contained in:
Josh Frye 2016-02-05 10:27:59 -05:00
parent 9bf85c01a9
commit 1a9630acc5
3 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -13,4 +13,3 @@
= render 'filter'
= render 'projects', projects: @projects
= paginate @projects, theme: "gitlab"

View File

@ -8,4 +8,3 @@
= render 'explore/projects/nav'
= render 'projects', projects: @projects
= paginate @projects, theme: 'gitlab' if @projects