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
Boxiang Sun
gitlab-ce
Commits
7cca8ffe
Commit
7cca8ffe
authored
Sep 08, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ruby update
parent
2abbb098
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
app/controllers/projects/project_members_controller.rb
app/controllers/projects/project_members_controller.rb
+7
-7
app/views/projects/project_members/_team.html.haml
app/views/projects/project_members/_team.html.haml
+1
-1
app/views/projects/project_members/index.html.haml
app/views/projects/project_members/index.html.haml
+2
-2
No files found.
app/controllers/projects/project_members_controller.rb
View file @
7cca8ffe
...
...
@@ -7,15 +7,15 @@ class Projects::ProjectMembersController < Projects::ApplicationController
def
index
@groups
=
@project
.
project_group_links
project_members
=
@project
.
project_members
project_members
=
project_members
.
non_invite
unless
can?
(
current_user
,
:admin_project
,
@project
)
@
project_members
=
@project
.
project_members
@project_members
=
@
project_members
.
non_invite
unless
can?
(
current_user
,
:admin_project
,
@project
)
members_ids
=
project_members
.
pluck
(
:id
)
@members
=
Member
.
where
(
id:
members_ids
.
flatten
)
@members_size
=
@members
.
size
if
params
[
:search
].
present?
users
=
@project
.
users
.
search
(
params
[
:search
]).
to_a
@project_members
=
@project_members
.
where
(
user_id:
users
)
end
@
members
=
@
members
.
page
(
params
[
:page
])
@
project_members
=
@project_
members
.
page
(
params
[
:page
])
@requesters
=
@project
.
requesters
if
can?
(
current_user
,
:admin_project
,
@project
)
...
...
app/views/projects/project_members/_team.html.haml
View file @
7cca8ffe
...
...
@@ -2,7 +2,7 @@
.panel-heading
Users with access to
%strong
#{
@project
.
name
}
%span
.badge
=
@
members_size
%span
.badge
=
@
project_members
.
total_count
%ul
.content-list
-
members
.
each
do
|
member
|
=
render
'shared/members/member'
,
member:
member
app/views/projects/project_members/index.html.haml
View file @
7cca8ffe
...
...
@@ -25,5 +25,5 @@
-
if
@groups
.
size
>
0
=
render
'groups'
,
groups:
@groups
=
render
'team'
,
members:
@members
=
paginate
@members
,
theme:
"gitlab"
=
render
'team'
,
members:
@
project_
members
=
paginate
@
project_
members
,
theme:
"gitlab"
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