Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
206c9b4f4014
Unverified
Commit
fd12e5c6
authored
Feb 14, 2014
by
Dmitriy Zaporozhets
Browse files
Dont render more than 20 group members on Project#members page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
730dd0a87d97
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/projects/team_members/_group_members.html.haml
View file @
206c9b4f
-
group_users_count
=
@group
.
users_groups
.
count
.ui-box
.title
%strong
#{
@group
.
name
}
group members (
#{
@
group
.
users_
groups
.
count
}
)
group members (
#{
group
_
users_count
}
)
.pull-right
=
link_to
members_group_path
(
@group
),
class:
'btn btn-small'
do
%i
.icon-edit
%ul
.well-list
-
@group
.
users_groups
.
order
(
'group_access DESC'
).
each
do
|
member
|
-
@group
.
users_groups
.
order
(
'group_access DESC'
).
limit
(
20
).
each
do
|
member
|
=
render
'users_groups/users_group'
,
member:
member
,
show_controls:
false
-
if
group_users_count
>
20
%li
and
#{
group_users_count
-
20
}
more. For full list visit
#{
link_to
'group members page'
,
members_group_path
(
@group
)
}
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