diff options
author | Azul <azul@leap.se> | 2014-05-28 09:26:17 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-28 09:26:17 +0200 |
commit | df1c2438fcfe39edfb46546be8fcee5021f95fc3 (patch) | |
tree | 77be434e4cfbf4329f4c739cea58da97a9ee435e /app/views/users/_destroy_account.html.haml | |
parent | 8ca32588c969ee9eca986da8cf1de92b39ce3576 (diff) |
destroy_btn helper method
Diffstat (limited to 'app/views/users/_destroy_account.html.haml')
-rw-r--r-- | app/views/users/_destroy_account.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/_destroy_account.html.haml b/app/views/users/_destroy_account.html.haml index be003ce..a2c4ddd 100644 --- a/app/views/users/_destroy_account.html.haml +++ b/app/views/users/_destroy_account.html.haml @@ -8,7 +8,7 @@ - else = t(:admin_destroy_account, :username => @user.login) %p= t(:destroy_account_info) -= btn user_path(@user), :method => :delete, :confirm => t(:are_you_sure), :type => "danger" do += destroy_btn user_path(@user), :type => "danger" do %i.icon-remove.icon-white = t(:destroy_my_account) - if @user != current_user and @user.enabled? |