Commit 27900efb972b84b1a31f2a92cbc9272073a94338

Authored by Dmitriy Zaporozhets
2 parents 2f148190 00d72e73

Merge pull request #5779 from jvanbaarsen/patch-1

Better warning when deleting a user
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/admin/users/index.html.haml
@@ -54,5 +54,5 @@ @@ -54,5 +54,5 @@
54 = link_to 'Unblock', unblock_admin_user_path(user), method: :put, class: "btn btn-small success" 54 = link_to 'Unblock', unblock_admin_user_path(user), method: :put, class: "btn btn-small success"
55 - else 55 - else
56 = link_to 'Block', block_admin_user_path(user), confirm: 'USER WILL BE BLOCKED! Are you sure?', method: :put, class: "btn btn-small btn-remove" 56 = link_to 'Block', block_admin_user_path(user), confirm: 'USER WILL BE BLOCKED! Are you sure?', method: :put, class: "btn btn-small btn-remove"
57 - = link_to 'Destroy', [:admin, user], confirm: "USER #{user.name} WILL BE REMOVED! Are you sure?", method: :delete, class: "btn btn-small btn-remove" 57 + = link_to 'Destroy', [:admin, user], confirm: "USER #{user.name} WILL BE REMOVED! All tickets linked to this user will also be removed! Maybe block the user instead? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
58 = paginate @users, theme: "gitlab" 58 = paginate @users, theme: "gitlab"