1
0

self_destruct.html.haml 680 B

1234567891011121314151617181920
  1. - content_for :page_title do
  2. = t('self_destruct.title')
  3. .simple_form
  4. %h1.title= t('self_destruct.title')
  5. %p.lead= t('self_destruct.lead_html', domain: ENV.fetch('LOCAL_DOMAIN'))
  6. .form-footer
  7. %ul.no-list
  8. - if user_signed_in?
  9. %li= link_to t('settings.account_settings'), edit_user_registration_path
  10. - else
  11. - if controller_name != 'sessions'
  12. %li= link_to_login t('auth.login')
  13. - if controller_name != 'passwords' && controller_name != 'registrations'
  14. %li= link_to t('auth.forgot_password'), new_user_password_path
  15. - if user_signed_in?
  16. %li= link_to t('auth.logout'), destroy_user_session_path, data: { method: :delete }