Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
5a78bcd1ecf4
Commit
dc0f08f8
authored
Jun 22, 2013
by
Dmitriy Zaporozhets
Browse files
Show also group members on project page at admin area
parent
39885643e3e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/admin/projects_controller.rb
View file @
5a78bcd1
...
...
@@ -15,6 +15,7 @@ def index
def
show
@repository
=
@project
.
repository
@group
=
@project
.
group
end
protected
...
...
app/views/admin/projects/show.html.haml
View file @
5a78bcd1
...
...
@@ -74,6 +74,18 @@
%i
.icon-lock
Private
.span6
-
if
@group
.ui-box
%h5
.title
%strong
#{
@group
.
name
}
Group
members (
#{
@group
.
users_groups
.
count
}
)
.pull-right
=
link_to
admin_group_path
(
@group
),
class:
'btn btn-small'
do
%i
.icon-edit
%ul
.well-list
-
@group
.
users_groups
.
order
(
'group_access DESC'
).
each
do
|
member
|
=
render
'users_groups/users_group'
,
member:
member
,
show_controls:
false
.ui-box
%h5
.title
Team
...
...
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