_checklist.html.haml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. %table.email-w-full.email-checklist-wrapper-table{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  2. %tr
  3. %td.email-checklist-wrapper-td
  4. %table.email-w-full.email-checklist-table{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation', class: ('email-checklist-checked' if defined?(checked) && checked) }
  5. %tr
  6. %td.email-checklist-td
  7. %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  8. %tr
  9. %td.email-checklist-icons-td
  10. %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  11. %tr
  12. %td.email-checklist-icons-checkbox-td
  13. - if defined?(checked) && checked
  14. = image_tag frontend_asset_url('images/mailer-new/welcome/checkbox-on.png'), alt: '', width: 20, height: 20
  15. - else
  16. = image_tag frontend_asset_url('images/mailer-new/welcome/checkbox-off.png'), alt: '', width: 20, height: 20
  17. %td.email-checklist-icons-step-td
  18. - if defined?(key)
  19. = image_tag frontend_asset_url("images/mailer-new/welcome-icons/#{key}_step-#{checked ? 'on' : 'off'}.png"), alt: '', width: 40, height: 40
  20. %td.email-checklist-text-td
  21. .email-desktop-flex
  22. /[if mso]
  23. <table border="0" cellpadding="0" cellspacing="0" align="center" style="width:100%;" role="presentation"><tr><td vertical-align:top;">
  24. %div
  25. %h3= t("user_mailer.welcome.#{key}_title")
  26. %p= t("user_mailer.welcome.#{key}_step")
  27. /[if mso]
  28. </td><td style="vertical-align:top;">
  29. %div
  30. - if defined?(show_apps_buttons) && show_apps_buttons
  31. .email-welcome-apps-btns
  32. = link_to image_tag(frontend_asset_url('images/mailer-new/store-icons/btn-app-store.png'), alt: t('user_mailer.welcome.apps_ios_action'), width: 120, height: 40), 'https://apps.apple.com/app/mastodon-for-iphone-and-ipad/id1571998974'
  33. = link_to image_tag(frontend_asset_url('images/mailer-new/store-icons/btn-google-play.png'), alt: t('user_mailer.welcome.apps_android_action'), width: 120, height: 40), 'https://play.google.com/store/apps/details?id=org.joinmastodon.android'
  34. - elsif defined?(button_text) && defined?(button_url) && defined?(checked) && !checked
  35. = render 'application/mailer/button', text: button_text, url: button_url, has_arrow: false
  36. /[if mso]
  37. </td></tr></table>