mailer.html.haml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. %title/
  7. = stylesheet_pack_tag 'mailer'
  8. %body{ dir: locale_direction }
  9. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  10. %tbody
  11. %tr
  12. %td.email-body.email-start
  13. .email-container
  14. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  15. %tbody
  16. %tr
  17. %td.content-cell.header
  18. .email-row
  19. .col-6
  20. %table.column{ cellspacing: 0, cellpadding: 0 }
  21. %tbody
  22. %tr
  23. %td.column-cell
  24. = link_to root_url do
  25. = image_tag full_pack_url('media/images/mailer/logo_full.png'), alt: 'Mastodon', height: 34, class: 'logo'
  26. = yield
  27. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  28. %tbody
  29. %tr
  30. %td.email-body.email-end
  31. .email-container
  32. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  33. %tbody
  34. %tr
  35. %td.content-cell.content-end
  36. != "  "
  37. %tr
  38. %td.blank-cell.footer
  39. .email-row
  40. .col-6
  41. %table.column{ cellspacing: 0, cellpadding: 0 }
  42. %tbody
  43. %td.column-cell
  44. %p= t 'about.hosted_on', domain: site_hostname
  45. %p= link_to t('application_mailer.notification_preferences'), settings_preferences_notifications_url
  46. %td.column-cell.text-right
  47. = link_to root_url do
  48. = image_tag full_pack_url('media/images/mailer/logo_transparent.png'), alt: 'Mastodon', height: 24