Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
app/helpers/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