summaryrefslogtreecommitdiff
path: root/app/views/admin/users/index.html.haml
diff options
context:
space:
mode:
authorJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2013-12-10 20:33:21 +0100
committerJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2013-12-10 20:33:21 +0100
commitbfacf1366842055d7338df0ad5f705d5f819a60b (patch)
treed0f653281da0d04dff47cb1810869117a583176e /app/views/admin/users/index.html.haml
parent72f2be8666ed1ca9461c36352c2b9479f352c155 (diff)
downloadgitlab-ce-bfacf1366842055d7338df0ad5f705d5f819a60b.tar.gz
Fixed all the confirm: deprecation warnings
Diffstat (limited to 'app/views/admin/users/index.html.haml')
-rw-r--r--app/views/admin/users/index.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml
index 950f1a02713..5bc73d11f31 100644
--- a/app/views/admin/users/index.html.haml
+++ b/app/views/admin/users/index.html.haml
@@ -53,6 +53,6 @@
- if user.blocked?
= 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! 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"
+ = link_to 'Block', block_admin_user_path(user), data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'}, method: :put, class: "btn btn-small btn-remove"
+ = link_to 'Destroy', [:admin, user], data: { 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"