debian-mirror-gitlab/app/views/admin/users/groups.html.haml

21 lines
896 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Groups", @user.name, "Users"
= render 'admin/users/head'
2016-08-24 12:49:21 +05:30
- group_members = @user.group_members.includes(:source)
- if group_members.any?
2015-09-11 14:41:01 +05:30
.panel.panel-default
.panel-heading Groups:
%ul.well-list
2016-08-24 12:49:21 +05:30
- group_members.each do |group_member|
2015-09-11 14:41:01 +05:30
- group = group_member.group
%li.group_member
%span{class: ("list-item-name" unless group_member.owner?)}
%strong= link_to group.name, admin_group_path(group)
.pull-right
%span.light= group_member.human_access
- unless group_member.owner?
= link_to group_group_member_path(group, group_member), data: { confirm: remove_member_message(group_member) }, method: :delete, remote: true, class: "btn-xs btn btn-remove", title: 'Remove user from group' do
2015-09-11 14:41:01 +05:30
%i.fa.fa-times.fa-inverse
- else
.nothing-here-block This user has no groups.