forked from Gitlink/forgeplus
后台项目增加镜像项目查询
This commit is contained in:
parent
6f7aad06c6
commit
2f79aab571
|
|
@ -17,7 +17,7 @@ class Admins::ProjectsController < Admins::BaseController
|
|||
when 'original'
|
||||
projects = projects.where(forked_from_project_id: nil, project_type: 'common')
|
||||
when 'mirror'
|
||||
projects = projects.where(project_type: 'mirror')
|
||||
projects = projects.where(project_type: 'sync_mirror')
|
||||
end
|
||||
@projects = paginate projects.includes(:owner, :members, :issues, :versions, :attachments, :project_score)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue