=search_field_tag:name,params[:name],placeholder: 'Name, email or username',class: 'form-control',spellcheck: false
=hidden_field_tag"filter",params[:filter]
=button_tagclass: 'btn btn-primary'do
%i.fa.fa-search
.panel.panel-default
%ul.well-list
%ul.well-list
-@users.eachdo|user|
-@users.eachdo|user|
%li
%li
...
@@ -103,4 +98,4 @@
...
@@ -103,4 +98,4 @@
=link_to'Unlock',unlock_admin_user_path(user),method: :put,class: 'btn-grouped btn btn-xs btn-success',data: {confirm: 'Are you sure?'}
=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?
-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'
=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'