diff options
author | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2013-12-10 20:33:21 +0100 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2013-12-10 20:33:21 +0100 |
commit | bfacf1366842055d7338df0ad5f705d5f819a60b (patch) | |
tree | d0f653281da0d04dff47cb1810869117a583176e /app/views/admin/users/index.html.haml | |
parent | 72f2be8666ed1ca9461c36352c2b9479f352c155 (diff) | |
download | gitlab-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.haml | 4 |
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" |