From ebdceb115f8a426bea61e4bf144463b67dbaf125 Mon Sep 17 00:00:00 2001 From: jessib Date: Thu, 20 Jun 2013 11:54:16 -0700 Subject: For removing account, redirect to root path, and ask confirmation message: https://leap.se/code/issues/2923 --- users/app/views/users/_cancel_account.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/app/views') diff --git a/users/app/views/users/_cancel_account.html.haml b/users/app/views/users/_cancel_account.html.haml index 756170b..c5ab36a 100644 --- a/users/app/views/users/_cancel_account.html.haml +++ b/users/app/views/users/_cancel_account.html.haml @@ -4,6 +4,6 @@ %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 += link_to user_path(@user), :method => :delete, :confirm => t(:confirm_question), :class => "btn btn-danger" do %i.icon-remove.icon-white =t :remove_account -- cgit v1.2.3