suspicious_sign_in.html.haml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  2. %tbody
  3. %tr
  4. %td.email-body
  5. .email-container
  6. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  7. %tbody
  8. %tr
  9. %td.content-cell.hero
  10. .email-row
  11. .col-6
  12. %table.column{ cellspacing: 0, cellpadding: 0 }
  13. %tbody
  14. %tr
  15. %td.column-cell.text-center.padded
  16. %table.hero-icon.warning-icon{ align: 'center', cellspacing: 0, cellpadding: 0 }
  17. %tbody
  18. %tr
  19. %td
  20. = image_tag full_pack_url('media/images/mailer/icon_lock_open.png'), alt: ''
  21. %h1= t 'user_mailer.suspicious_sign_in.title'
  22. %p= t 'user_mailer.suspicious_sign_in.explanation'
  23. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  24. %tbody
  25. %tr
  26. %td.email-body
  27. .email-container
  28. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  29. %tbody
  30. %tr
  31. %td.content-cell
  32. .email-row
  33. .col-6
  34. %table.column{ cellspacing: 0, cellpadding: 0 }
  35. %tbody
  36. %tr
  37. %td.column-cell.text-center
  38. %p= t 'user_mailer.suspicious_sign_in.details'
  39. %tr
  40. %td.column-cell.text-center
  41. %p
  42. %strong #{t('sessions.ip')}:
  43. = @remote_ip
  44. %br/
  45. %strong #{t('sessions.browser')}:
  46. %span{ title: @user_agent }= t 'sessions.description', browser: t("sessions.browsers.#{@detection.id}", default: @detection.id.to_s), platform: t("sessions.platforms.#{@detection.platform.id}", default: @detection.platform.id.to_s)
  47. %br/
  48. = l(@timestamp.in_time_zone(@resource.time_zone.presence), format: :with_time_zone)
  49. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  50. %tbody
  51. %tr
  52. %td.email-body
  53. .email-container
  54. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  55. %tbody
  56. %tr
  57. %td.content-cell
  58. .email-row
  59. .col-6
  60. %table.column{ cellspacing: 0, cellpadding: 0 }
  61. %tbody
  62. %tr
  63. %td.column-cell.text-center
  64. %p= t 'user_mailer.suspicious_sign_in.further_actions_html', action: link_to(t('user_mailer.suspicious_sign_in.change_password'), edit_user_registration_url)