summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-07-29 12:15:21 +0200
committerDouwe Maan <douwe@gitlab.com>2015-07-29 12:15:21 +0200
commitd953f6927cfa605d0bc336b09a25bde2a483b3ba (patch)
tree012540bcbc0da37b87bcb0e025ce477b416a80fa
parentb230335090ee8fa22ab79453e24c1c3c468569df (diff)
downloadgitlab-ce-admin-group-member.tar.gz
Restore Leave button on dashboard groups pageadmin-group-member
-rw-r--r--app/views/dashboard/groups/index.html.haml7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/dashboard/groups/index.html.haml b/app/views/dashboard/groups/index.html.haml
index 6ef4d752ac3..0a354373b9b 100644
--- a/app/views/dashboard/groups/index.html.haml
+++ b/app/views/dashboard/groups/index.html.haml
@@ -23,10 +23,9 @@
%i.fa.fa-cogs
Settings
- - if can?(current_user, :admin_group_member, group)
- = link_to leave_group_group_members_path(group), data: { confirm: leave_group_message(group.name) }, method: :delete, class: "btn-sm btn btn-grouped", title: 'Leave this group' do
- %i.fa.fa-sign-out
- Leave
+ = link_to leave_group_group_members_path(group), data: { confirm: leave_group_message(group.name) }, method: :delete, class: "btn-sm btn btn-grouped", title: 'Leave this group' do
+ %i.fa.fa-sign-out
+ Leave
= image_tag group_icon(group), class: "avatar s40 avatar-tile hidden-xs"
= link_to group, class: 'group-name' do