1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2%html{ lang: "en" }
3  %head
4    %meta{ content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type" }/
5    %meta{ content: "width=device-width, initial-scale=1", name: "viewport" }/
6    %meta{ content: "IE=edge", "http-equiv" => "X-UA-Compatible" }/
7    %title= message.subject
8
9    -# Avoid premailer processing of client-specific styles (@media tag not supported)
10    -# We need to inline the contents here because mail clients (e.g. iOS Mail, Outlook)
11    -# do not support linked stylesheets.
12    %style{ type: 'text/css', 'data-premailer': 'ignore' }
13      = asset_to_string('mailer_client_specific.css').html_safe
14
15    = stylesheet_link_tag 'mailer.css'
16  %body
17    = yield :preview_text
18    %table#body{ border: "0", cellpadding: "0", cellspacing: "0" }
19      %tbody
20        %tr.line
21          %td
22        %tr.header
23          %td
24            = html_header_message
25            = header_logo
26        %tr
27          %td
28            %table.wrapper{ border: "0", cellpadding: "0", cellspacing: "0" }
29              %tbody
30                %tr
31                  %td.wrapper-cell
32                    %table.content{ border: "0", cellpadding: "0", cellspacing: "0" }
33                      %tbody
34                        = yield
35
36        = render_if_exists 'layouts/mailer/additional_text'
37
38        = yield :footer
39
40        = yield :additional_footer
41        %tr
42          %td.footer-message
43            = html_footer_message
44