1
0

confirmation_instructions.html.haml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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{ 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 'devise.mailer.confirmation_instructions.title'
  22. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  23. %tbody
  24. %tr
  25. %td.email-body
  26. .email-container
  27. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  28. %tbody
  29. %tr
  30. %td.content-cell.content-start
  31. .email-row
  32. .col-6
  33. %table.column{ cellspacing: 0, cellpadding: 0 }
  34. %tbody
  35. %tr
  36. %td.column-cell.text-center
  37. %p= t @resource.approved? ? 'devise.mailer.confirmation_instructions.explanation' : 'devise.mailer.confirmation_instructions.explanation_when_pending', host: site_hostname
  38. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  39. %tbody
  40. %tr
  41. %td.email-body
  42. .email-container
  43. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  44. %tbody
  45. %tr
  46. %td.content-cell
  47. %table.column{ cellspacing: 0, cellpadding: 0 }
  48. %tbody
  49. %tr
  50. %td.column-cell.button-cell
  51. %table.button{ align: 'center', cellspacing: 0, cellpadding: 0 }
  52. %tbody
  53. %tr
  54. %td.button-primary
  55. - if @resource.created_by_application
  56. = link_to confirmation_url(@resource, confirmation_token: @token, redirect_to_app: 'true') do
  57. %span= t 'devise.mailer.confirmation_instructions.action_with_app', app: @resource.created_by_application.name
  58. - else
  59. = link_to confirmation_url(@resource, confirmation_token: @token) do
  60. %span= t 'devise.mailer.confirmation_instructions.action'
  61. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  62. %tbody
  63. %tr
  64. %td.email-body
  65. .email-container
  66. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  67. %tbody
  68. %tr
  69. %td.content-cell
  70. .email-row
  71. .col-6
  72. %table.column{ cellspacing: 0, cellpadding: 0 }
  73. %tbody
  74. %tr
  75. %td.column-cell.text-center
  76. %p= t 'devise.mailer.confirmation_instructions.extra_html', terms_path: about_more_url, policy_path: privacy_policy_url