sign_in_token.html.haml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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.alert-icon{ align: 'center', cellspacing: 0, cellpadding: 0 }
  17. %tbody
  18. %tr
  19. %td
  20. = image_tag full_pack_url('media/images/mailer/icon_email.png'), alt: ''
  21. %h1= t 'user_mailer.sign_in_token.title'
  22. %p.lead= t 'user_mailer.sign_in_token.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.content-start
  32. %table.column{ cellspacing: 0, cellpadding: 0 }
  33. %tbody
  34. %tr
  35. %td.column-cell.input-cell
  36. %table.input{ align: 'center', cellspacing: 0, cellpadding: 0 }
  37. %tbody
  38. %tr
  39. %td= @resource.sign_in_token
  40. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  41. %tbody
  42. %tr
  43. %td.email-body
  44. .email-container
  45. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  46. %tbody
  47. %tr
  48. %td.content-cell
  49. .email-row
  50. .col-6
  51. %table.column{ cellspacing: 0, cellpadding: 0 }
  52. %tbody
  53. %tr
  54. %td.column-cell.text-center
  55. %p= t 'user_mailer.sign_in_token.details'
  56. %tr
  57. %td.column-cell.text-center
  58. %p
  59. %strong= "#{t('sessions.ip')}:"
  60. = @remote_ip
  61. %br/
  62. %strong= "#{t('sessions.browser')}:"
  63. %span{ title: @user_agent }= t 'sessions.description', browser: t("sessions.browsers.#{@detection.id}", default: "#{@detection.id}"), platform: t("sessions.platforms.#{@detection.platform.id}", default: "#{@detection.platform.id}")
  64. %br/
  65. = l(@timestamp)
  66. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  67. %tbody
  68. %tr
  69. %td.email-body
  70. .email-container
  71. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  72. %tbody
  73. %tr
  74. %td.content-cell
  75. .email-row
  76. .col-6
  77. %table.column{ cellspacing: 0, cellpadding: 0 }
  78. %tbody
  79. %tr
  80. %td.column-cell.text-center
  81. %p= t 'user_mailer.sign_in_token.further_actions'
  82. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  83. %tbody
  84. %tr
  85. %td.email-body
  86. .email-container
  87. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  88. %tbody
  89. %tr
  90. %td.content-cell
  91. %table.column{ cellspacing: 0, cellpadding: 0 }
  92. %tbody
  93. %tr
  94. %td.column-cell.button-cell
  95. %table.button{ align: 'center', cellspacing: 0, cellpadding: 0 }
  96. %tbody
  97. %tr
  98. %td.button-primary
  99. = link_to edit_user_registration_url do
  100. %span= t 'settings.account_settings'