gitlab-org--gitlab-foss/app/views/dashboard/groups/index.html.haml

41 lines
1.3 KiB
Text
Raw Normal View History

2013-07-31 10:39:57 -04:00
%h3.page-title
Group Membership
- if current_user.can_create_group?
%span.pull-right
= link_to new_group_path, class: "btn btn-new" do
2014-10-01 18:21:29 -04:00
%i.fa.fa-plus
New Group
2013-07-31 10:39:57 -04:00
%p.light
Group members have access to all group projects.
2013-07-31 10:39:57 -04:00
%hr
.panel.panel-default
.panel-heading
%strong Groups
(#{@group_members.count})
%ul.well-list
- @group_members.each do |group_member|
- group = group_member.group
%li
.pull-right
- if can?(current_user, :manage_group, group)
2015-03-14 03:29:32 -04:00
= link_to edit_group_path(group), class: "btn-sm btn btn-grouped" do
2014-10-01 18:21:29 -04:00
%i.fa.fa-cogs
Settings
- if can?(current_user, :destroy_group_member, group_member)
= link_to leave_group_group_members_path(group), data: { confirm: leave_group_message(group.name) }, method: :delete, class: "btn-sm btn btn-grouped", title: 'Remove user from group' do
2014-10-01 18:21:29 -04:00
%i.fa.fa-sign-out
2014-02-07 11:59:55 -05:00
Leave
= image_tag group_icon(group), class: "avatar s40 avatar-tile"
= link_to group, class: 'group-name' do
%strong= group.name
as
%strong #{group_member.human_access}
%div.light
#{pluralize(group.projects.count, "project")}, #{pluralize(group.users.count, "user")}
= paginate @group_members