Small improvements to group/project member rows
This commit is contained in:
parent
aad3cbeec5
commit
bacb05c554
3 changed files with 5 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
|||
title: 'Edit access level', type: 'button' do
|
||||
%i.fa.fa-pencil-square-o
|
||||
- if can?(current_user, :destroy_group_member, member)
|
||||
|
||||
- if current_user == user
|
||||
= link_to leave_group_group_members_path(@group), data: { confirm: leave_group_message(@group.name)}, method: :delete, class: "btn-xs btn btn-remove", title: 'Remove user from group' do
|
||||
%i.fa.fa-minus.fa-inverse
|
||||
|
|
|
@ -4,9 +4,10 @@
|
|||
group members
|
||||
%small
|
||||
(#{members.count})
|
||||
.pull-right
|
||||
.panel-head-actions
|
||||
= link_to group_group_members_path(@group), class: 'btn btn-sm' do
|
||||
%i.fa.fa-pencil-square-o
|
||||
Edit group members
|
||||
%ul.well-list
|
||||
- members.each do |member|
|
||||
= render 'groups/group_members/group_member', member: member, show_controls: false
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
title: 'Edit access level', type: 'button' do
|
||||
%i.fa.fa-pencil-square-o
|
||||
|
||||
|
||||
- if current_user == user
|
||||
= link_to leave_namespace_project_project_members_path(@project.namespace, @project), data: { confirm: "Leave project?"}, method: :delete, class: "btn-xs btn btn-remove", title: 'Leave project' do
|
||||
%i.fa.fa-minus.fa-inverse
|
||||
|
|
Loading…
Reference in a new issue