[ADD]组织项目相关

This commit is contained in:
2021-01-19 19:02:51 +08:00
parent 1dc43a23b7
commit f094fe1799
31 changed files with 406 additions and 56 deletions

View File

@@ -0,0 +1,10 @@
class Projects::TeamsController < Projects::BaseController
def index
if @project.owner.is_a?(Organization)
@teams = @project.owner.teams
else
@teams = Team.none
end
@teams = paginate(@teams)
end
end