gitlabhq/app/helpers/projects_helper.rb
2012-09-10 09:14:37 +03:00

11 lines
302 B
Ruby

module ProjectsHelper
def grouper_project_members(project)
@project.users_projects.sort_by(&:project_access).reverse.group_by(&:project_access)
end
def remove_from_team_message(project, member)
"You are going to remove #{member.user_name} from #{project.name}. Are you sure?"
end
end