Commit 00d72e73c855613b7e07158a8975796dec7cf9ad
1 parent
68d95381
Exists in
master
and in
4 other branches
Better warning when deleting a user
Warn the administrator better when deleting a user. Fixes: https://github.com/gitlabhq/gitlabhq/issues/4295
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 | 54 | = link_to 'Unblock', unblock_admin_user_path(user), method: :put, class: "btn btn-small success" |
55 | 55 | - else |
56 | 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 | 58 | = paginate @users, theme: "gitlab" | ... | ... |