Team projects public section
This commit is contained in:
parent
ea6f46cb87
commit
a96cf3ad09
6 changed files with 69 additions and 0 deletions
21
app/controllers/teams/projects_controller.rb
Normal file
21
app/controllers/teams/projects_controller.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
class Teams::ProjectsController < Teams::ApplicationController
|
||||
def index
|
||||
@projects = @user_team.projects
|
||||
@avaliable_projects = current_user.admin? ? Project.without_team(@user_team) : (Project.personal(current_user) + current_user.projects).uniq
|
||||
end
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
|
||||
def destroy
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue