OSDN Git Service

Better warning when deleting a user
authorJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Fri, 6 Dec 2013 19:11:14 +0000 (20:11 +0100)
committerJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Fri, 6 Dec 2013 19:11:14 +0000 (20:11 +0100)
Warn the administrator better when deleting a user.
Fixes: https://github.com/gitlabhq/gitlabhq/issues/4295

app/views/admin/users/index.html.haml

index 9c5796a..950f1a0 100644 (file)
@@ -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"