Add public filter to admin projects
This commit is contained in:
parent
122acb2254
commit
68bfcd0521
10 changed files with 73 additions and 34 deletions
|
@ -7,5 +7,6 @@ class Public::ProjectsController < ApplicationController
|
|||
|
||||
def index
|
||||
@projects = Project.public
|
||||
@projects = @projects.includes(:namespace).order("namespaces.path, projects.name ASC").page(params[:page]).per(20)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue