diff options
author | azul <azul@riseup.net> | 2017-04-03 08:51:56 +0000 |
---|---|---|
committer | azul <azul@riseup.net> | 2017-04-03 08:51:56 +0000 |
commit | d4ec87744e5eed54126c78a7d2f1154d1e8e53c0 (patch) | |
tree | 70405839cd6bbf3331c94412b4178b6399dfafa3 /app/helpers/users_helper.rb | |
parent | 552483c9e3f73952839e934374e2aa8b07681f4d (diff) | |
parent | e9bdd2aa5a0662a9fc6d5ce730e26cfd560210ba (diff) |
Merge branch 'feature/clear-user' into 'master'
feature: delete user clearing username
Closes #26
See merge request !34
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r-- | app/helpers/users_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 1b2dc5d..985f750 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -11,4 +11,12 @@ module UsersHelper end end + + def destroy_account_text + if @user == current_user + t(:destroy_my_account) + else + t(:admin_destroy_account, :username => @user.login) + end + end end |