about summary refs log tree commit diff
path: root/app/views/auth/registrations/edit.html.haml
diff options
context:
space:
mode:
authormasarakki <masaki182@gmail.com>2017-06-19 22:12:31 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-19 15:12:31 +0200
commitff142eb64d2d1251f9df1baa0b302fd532ec30ed (patch)
tree66c9e30ddef330ae32d3b0adb75983bf38bc0a4b /app/views/auth/registrations/edit.html.haml
parent500e28442f8e6657de766fbdb4a4cfdb164b2b92 (diff)
setting-for-account-deletable (#3852)
Diffstat (limited to 'app/views/auth/registrations/edit.html.haml')
-rw-r--r--app/views/auth/registrations/edit.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/auth/registrations/edit.html.haml b/app/views/auth/registrations/edit.html.haml
index cbaa75ae0..38d4349cb 100644
--- a/app/views/auth/registrations/edit.html.haml
+++ b/app/views/auth/registrations/edit.html.haml
@@ -12,7 +12,8 @@
   .actions
     = f.button :button, t('generic.save_changes'), type: :submit
 
-%hr/
+- if open_deletion?
+  %hr/
 
-%h6= t('auth.delete_account')
-%p.muted-hint= t('auth.delete_account_html', path: settings_delete_path)
+  %h6= t('auth.delete_account')
+  %p.muted-hint= t('auth.delete_account_html', path: settings_delete_path)