Team projects public section

This commit is contained in:
Andrey Kumanyaev 2013-01-19 21:48:05 +04:00 committed by Dmitriy Zaporozhets
parent ea6f46cb87
commit a96cf3ad09
6 changed files with 69 additions and 0 deletions

View 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