From 00d72e73c855613b7e07158a8975796dec7cf9ad Mon Sep 17 00:00:00 2001 From: Jeroen van Baarsen Date: Fri, 6 Dec 2013 20:11:14 +0100 Subject: Better warning when deleting a user Warn the administrator better when deleting a user. Fixes: https://github.com/gitlabhq/gitlabhq/issues/4295 --- app/views/admin/users/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml index 9c5796a661d..950f1a02713 100644 --- a/app/views/admin/users/index.html.haml +++ b/app/views/admin/users/index.html.haml @@ -54,5 +54,5 @@ = link_to 'Unblock', unblock_admin_user_path(user), method: :put, class: "btn btn-small success" - else = link_to 'Block', block_admin_user_path(user), confirm: 'USER WILL BE BLOCKED! Are you sure?', method: :put, class: "btn btn-small btn-remove" - = link_to 'Destroy', [:admin, user], confirm: "USER #{user.name} WILL BE REMOVED! Are you sure?", method: :delete, class: "btn btn-small btn-remove" + = 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" = paginate @users, theme: "gitlab" -- cgit v1.2.1