Commit 6708a770de54e2dd4ee6c90b31b66e2c6f93aa2c
1 parent
74d6e492
Exists in
master
and in
4 other branches
Even more data: confirm
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/views/profiles/accounts/show.html.haml
... | ... | @@ -24,7 +24,7 @@ |
24 | 24 | %p.cgray |
25 | 25 | - if current_user.private_token |
26 | 26 | = text_field_tag "token", current_user.private_token, class: "input-xlarge input-xpadding pull-left" |
27 | - = f.submit 'Reset', confirm: "Are you sure?", class: "btn btn-primary btn-build-token prepend-left-10" | |
27 | + = f.submit 'Reset', data: { confirm: "Are you sure?" }, class: "btn btn-primary btn-build-token prepend-left-10" | |
28 | 28 | - else |
29 | 29 | %span You don`t have one yet. Click generate to fix it. |
30 | 30 | = f.submit 'Generate', class: "btn success btn-build-token" |
... | ... | @@ -70,4 +70,4 @@ |
70 | 70 | %li |
71 | 71 | The following groups will be abandoned. You should transfer or remove them: |
72 | 72 | %strong #{current_user.solo_owned_groups.map(&:name).join(', ')} |
73 | - = link_to 'Delete account', user_registration_path, confirm: "REMOVE #{current_user.name}? Are you sure?", method: :delete, class: "btn btn-remove" | |
73 | + = link_to 'Delete account', user_registration_path, data: { confirm: "REMOVE #{current_user.name}? Are you sure?" }, method: :delete, class: "btn btn-remove" | ... | ... |