1
0

warning.html.haml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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('media/images/mailer/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. - if !@statuses.nil? && !@statuses.empty?
  42. %p
  43. %strong= t('user_mailer.warning.statuses')
  44. - if !@statuses.nil? && !@statuses.empty?
  45. - @statuses.each_with_index do |status, i|
  46. = render 'notification_mailer/status', status: status, i: i + 1, highlighted: true
  47. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  48. %tbody
  49. %tr
  50. %td.email-body
  51. .email-container
  52. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  53. %tbody
  54. %tr
  55. %td.content-cell{ class: @statuses.nil? || @statuses.empty? ? '' : 'content-start' }
  56. %table.column{ cellspacing: 0, cellpadding: 0 }
  57. %tbody
  58. %tr
  59. %td.column-cell.button-cell
  60. %table.button{ align: 'center', cellspacing: 0, cellpadding: 0 }
  61. %tbody
  62. %tr
  63. %td.button-primary
  64. = link_to about_more_url do
  65. %span= t 'user_mailer.warning.review_server_policies'
  66. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  67. %tbody
  68. %tr
  69. %td.email-body
  70. .email-container
  71. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  72. %tbody
  73. %tr
  74. %td.content-cell
  75. .email-row
  76. .col-6
  77. %table.column{ cellspacing: 0, cellpadding: 0 }
  78. %tbody
  79. %tr
  80. %td.column-cell.text-center
  81. %p= t 'user_mailer.warning.get_in_touch', instance: @instance