diff options
author | jessib <jessib@leap.se> | 2013-02-25 14:02:28 -0800 |
---|---|---|
committer | jessib <jessib@leap.se> | 2013-02-25 14:02:28 -0800 |
commit | 73e9332dadde9f37a85753faf40b9b6b2d73dd88 (patch) | |
tree | 9d500a5f85438fad268d53f7900b1623d77aac31 /users/app/views/users/_cancel_account.html.haml | |
parent | bace229e4d1cf593eaef80b8e8553d9d33c40c50 (diff) |
Admins cannot update a user. Eventually we will want to allow admins to update some user fields.
Diffstat (limited to 'users/app/views/users/_cancel_account.html.haml')
-rw-r--r-- | users/app/views/users/_cancel_account.html.haml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/users/app/views/users/_cancel_account.html.haml b/users/app/views/users/_cancel_account.html.haml index 41580b0..756170b 100644 --- a/users/app/views/users/_cancel_account.html.haml +++ b/users/app/views/users/_cancel_account.html.haml @@ -1,6 +1,9 @@ %legend - =t :cancel_account - %small You will not be able to login anymore. + - if @user == current_user + =t :cancel_account + %small You will not be able to login anymore. + - else + =t :admin_cancel_account, :username => @user.login = link_to user_path(@user), :method => :delete, :class => "btn btn-danger" do %i.icon-remove.icon-white - Remove my Account + =t :remove_account |