Commit dc0f08f8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show also group members on project page at admin area

parent 6577d3a4
...@@ -15,6 +15,7 @@ class Admin::ProjectsController < Admin::ApplicationController ...@@ -15,6 +15,7 @@ class Admin::ProjectsController < Admin::ApplicationController
def show def show
@repository = @project.repository @repository = @project.repository
@group = @project.group
end end
protected protected
......
...@@ -74,6 +74,18 @@ ...@@ -74,6 +74,18 @@
%i.icon-lock %i.icon-lock
Private Private
.span6 .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 .ui-box
%h5.title %h5.title
Team Team
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment