Commit 1a9630ac authored by Josh Frye's avatar Josh Frye

Fix double paging

parent 9bf85c01
...@@ -50,7 +50,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController ...@@ -50,7 +50,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController
format.json do format.json do
render json: { 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
end end
......
...@@ -13,4 +13,3 @@ ...@@ -13,4 +13,3 @@
= render 'filter' = render 'filter'
= render 'projects', projects: @projects = render 'projects', projects: @projects
= paginate @projects, theme: "gitlab"
...@@ -8,4 +8,3 @@ ...@@ -8,4 +8,3 @@
= render 'explore/projects/nav' = render 'explore/projects/nav'
= render 'projects', projects: @projects = render 'projects', projects: @projects
= paginate @projects, theme: 'gitlab' if @projects
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment