2012-09-07 19:57:13 +03:00
|
|
|
module ProjectsHelper
|
|
|
|
def grouper_project_members(project)
|
|
|
|
@project.users_projects.sort_by(&:project_access).reverse.group_by(&:project_access)
|
|
|
|
end
|
2012-09-10 09:13:45 +03:00
|
|
|
|
|
|
|
def remove_from_team_message(project, member)
|
|
|
|
"You are going to remove #{member.user_name} from #{project.name}. Are you sure?"
|
|
|
|
end
|
2012-10-01 16:39:19 +03:00
|
|
|
|
|
|
|
def link_to_project project
|
|
|
|
link_to project.name, project
|
|
|
|
end
|
2012-10-29 23:45:11 +02:00
|
|
|
|
|
|
|
def tm_path team_member
|
|
|
|
project_team_member_path(@project, team_member)
|
|
|
|
end
|
2012-09-07 19:57:13 +03:00
|
|
|
end
|
|
|
|
|