summaryrefslogtreecommitdiff
path: root/users/app/views
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-06 12:30:58 +0100
committerAzul <azul@leap.se>2012-12-06 12:30:58 +0100
commit2885145729cbba9a933a8a2ff33c4fd99f08e0fb (patch)
treed6c3cc84ef294c54c198b78b4e3e3e787735eb50 /users/app/views
parentea3718c34cccd294865c0dd533db0b4aa18015cc (diff)
parent1b411de39f38eb0925cf255e941545933f227759 (diff)
Merge branch 'feature/user-cancel-account' into develop
Diffstat (limited to 'users/app/views')
-rw-r--r--users/app/views/users/edit.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/app/views/users/edit.html.haml b/users/app/views/users/edit.html.haml
index 8298443..cfcf220 100644
--- a/users/app/views/users/edit.html.haml
+++ b/users/app/views/users/edit.html.haml
@@ -1,3 +1,10 @@
.span8.offset2
%h2=t :settings
= render 'form'
+ - if @user == current_user
+ %legend
+ =t :cancel_account
+ %small You will not be able to login anymore.
+ = link_to user_path(@user), :method => :delete, :class => "btn btn-danger" do
+ %i.icon-remove.icon-white
+ Remove my Account