=link_to'Block',block_admin_user_path(user),data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'},method: :put,class: 'btn-grouped btn btn-xs btn-warning'
=link_touser.name,[:admin,user]
-ifuser.access_locked?
-ifuser.admin?
=link_to'Unlock',unlock_admin_user_path(user),method: :put,class: 'btn-grouped btn btn-xs btn-success',data: {confirm: 'Are you sure?'}
%strong.cred (Admin)
-ifuser.can_be_removed?
-ifuser==current_user
=link_to'Destroy',[:admin,user],data: {confirm: "USER #{user.name} WILL BE REMOVED! All issues, merge requests and groups linked to this user will also be removed! Maybe block the user instead? Are you sure?"},method: :delete,class: 'btn-grouped btn btn-xs btn-remove'
=link_to'Block',block_admin_user_path(user),data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'},method: :put,class: 'btn-grouped btn btn-xs btn-warning'
-ifuser.access_locked?
=link_to'Unlock',unlock_admin_user_path(user),method: :put,class: 'btn-grouped btn btn-xs btn-success',data: {confirm: 'Are you sure?'}
-ifuser.can_be_removed?
=link_to'Destroy',[:admin,user],data: {confirm: "USER #{user.name} WILL BE REMOVED! All issues, merge requests and groups linked to this user will also be removed! Maybe block the user instead? Are you sure?"},method: :delete,class: 'btn-grouped btn btn-xs btn-remove'