1
0

mailer.html.haml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. !!!
  2. %html{ lang: I18n.locale }
  3. %head
  4. %meta{ 'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=utf-8' }/
  5. %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, shrink-to-fit=no' }
  6. = stylesheet_pack_tag 'mailer'
  7. %body{ dir: locale_direction }
  8. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  9. %tbody
  10. %tr
  11. %td.email-body.email-start
  12. .email-container
  13. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  14. %tbody
  15. %tr
  16. %td.content-cell.header
  17. .email-row
  18. .col-6
  19. %table.column{ cellspacing: 0, cellpadding: 0 }
  20. %tbody
  21. %tr
  22. %td.column-cell
  23. = link_to root_url do
  24. = image_tag full_pack_url('media/images/mailer/wordmark.png'), alt: 'Mastodon', height: 34, class: 'logo'
  25. = yield
  26. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  27. %tbody
  28. %tr
  29. %td.email-body.email-end
  30. .email-container
  31. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  32. %tbody
  33. %tr
  34. %td.content-cell.content-end
  35. != "  "
  36. %tr
  37. %td.blank-cell.footer
  38. .email-row
  39. .col-6
  40. %table.column{ cellspacing: 0, cellpadding: 0 }
  41. %tbody
  42. %td.column-cell
  43. %p= t 'about.hosted_on', domain: site_hostname
  44. %p= link_to t('application_mailer.notification_preferences'), settings_preferences_notifications_url
  45. %td.column-cell.text-right
  46. = link_to root_url do
  47. = image_tag full_pack_url('media/images/mailer/logo.png'), alt: 'Mastodon', height: 24