BigW Consortium Gitlab

Commit a987f146 by Andrey Kumanyaev Committed by Dmitriy Zaporozhets

commit user team helper

parent 17e9207d
module UserTeamsHelper
def team_filter_path(entity, options={})
exist_opts = {
status: params[:status],
project_id: params[:project_id],
}
options = exist_opts.merge(options)
case entity
when 'issue' then
issues_team_path(@user_team, options)
when 'merge_request'
merge_requests_team_path(@user_team, options)
end
end
def grouped_user_team_members(team)
team.user_team_user_relationships.sort_by(&:permission).reverse.group_by(&:permission)
end
def remove_from_team_message(team, member)
"You are going to remove #{member.name} from #{team.name}. Are you sure?"
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment