warning.html.haml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.alert-icon{ align: 'center', cellspacing: 0, cellpadding: 0 }
  17. %tbody
  18. %tr
  19. %td
  20. = image_tag full_pack_url('icon_warning.png'), alt: ''
  21. %h1= t "user_mailer.warning.title.#{@warning.action}"
  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. - unless @warning.none_action?
  38. %p= t "user_mailer.warning.explanation.#{@warning.action}"
  39. - unless @warning.text.blank?
  40. = Formatter.instance.linkify(@warning.text)
  41. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  42. %tbody
  43. %tr
  44. %td.email-body
  45. .email-container
  46. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  47. %tbody
  48. %tr
  49. %td.content-cell
  50. %table.column{ cellspacing: 0, cellpadding: 0 }
  51. %tbody
  52. %tr
  53. %td.column-cell.button-cell
  54. %table.button{ align: 'center', cellspacing: 0, cellpadding: 0 }
  55. %tbody
  56. %tr
  57. %td.button-primary
  58. = link_to about_more_url do
  59. %span= t 'user_mailer.warning.review_server_policies'