1
0

_feature.html.haml 1.8 KB

123456789101112131415161718192021222324252627282930
  1. %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  2. %tr
  3. %td.email-feature-wrapper-td
  4. %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  5. %tr
  6. %td.email-feature-td
  7. .email-desktop-flex{ class: ('email-dir-rtl' if feature_iteration.index.odd?) }
  8. /[if mso]
  9. <table border="0" cellpadding="0" cellspacing="0" align="center" style="width:100%;" role="presentation"><tr><td style="width:50%; vertical-align:top;">
  10. .email-desktop-column
  11. %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  12. %tr
  13. %td.email-column-td
  14. %h2.email-h2= t("user_mailer.welcome.feature_#{feature}_title")
  15. %p.email-p= t("user_mailer.welcome.feature_#{feature}")
  16. - if defined?(feature_btn_url)
  17. = link_to '', href: feature_btn_url, class: 'email-link-with-arrow' do
  18. #{t('user_mailer.welcome.feature_action')} 
  19. %span= '❯'
  20. /[if mso]
  21. </td><td style="width:50%; vertical-align:top;">
  22. .email-desktop-column
  23. %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  24. %tr
  25. %td.email-column-td
  26. - if defined?(feature)
  27. %p{ class: ('email-desktop-text-right' if feature_iteration.index.even?) }
  28. = image_tag frontend_asset_url("images/mailer-new/welcome/feature_#{feature}.png"), alt: '', width: 240, height: 230
  29. /[if mso]
  30. </td></tr></table>