BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a987f146
Commit
a987f146
authored
Jan 19, 2013
by
Andrey Kumanyaev
Committed by
Dmitriy Zaporozhets
Jan 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit user team helper
parent
17e9207d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
user_teams_helper.rb
app/helpers/user_teams_helper.rb
+26
-0
No files found.
app/helpers/user_teams_helper.rb
0 → 100644
View file @
a987f146
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment