suspicious_sign_in.html.haml 1.5 KB

123456789101112131415161718192021222324252627
  1. = content_for :heading do
  2. = render 'application/mailer/heading',
  3. image_url: frontend_asset_url('images/mailer-new/heading/login.png'),
  4. subtitle: t('user_mailer.suspicious_sign_in.explanation'),
  5. title: t('user_mailer.suspicious_sign_in.title')
  6. %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  7. %tr
  8. %td.email-body-padding-td
  9. %table.email-inner-card-table{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  10. %tr
  11. %td.email-inner-card-td.email-prose
  12. %p= t 'user_mailer.suspicious_sign_in.details'
  13. %p
  14. %strong #{t('sessions.ip')}:
  15. = @remote_ip
  16. %br/
  17. %strong #{t('sessions.browser')}:
  18. %span{ title: @user_agent }
  19. = t 'sessions.description',
  20. browser: t("sessions.browsers.#{@detection.id}", default: @detection.id.to_s),
  21. platform: t("sessions.platforms.#{@detection.platform.id}", default: @detection.platform.id.to_s)
  22. %br/
  23. %strong #{t('sessions.date')}:
  24. = l(@timestamp.in_time_zone(@resource.time_zone.presence), format: :with_time_zone)
  25. = render 'application/mailer/button', text: t('settings.account_settings'), url: edit_user_registration_url
  26. %p= t 'user_mailer.suspicious_sign_in.further_actions_html',
  27. action: link_to(t('user_mailer.suspicious_sign_in.change_password'), edit_user_registration_url)