app/views/layouts/mail.html.haml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
%html{xmlns: "http://www.w3.org/1999/xhtml"}
%head
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
%title
= @mail_title || "Mail depuis Railsfrance.org"
:plain
<style type="text/css">
#outlook a { padding: 0; }
body { width: 100% !important; background-color:#ffffff; } .ReadMsgBody { width: 100%; } .ExternalClass { width: 100%; }
body { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; }
body { margin: 0; padding: 0; }
img { height: auto; line-height: 100%; outline: none; text-decoration: none; }
a img { border:none; }
#backgroundTable { margin: 0; padding: 0; width: 100% !important;background-color:#ffffff; }
p {
margin: 1em 0;
}
h1, h2, h3, h4, h5, h6 {
color: #99090a !important;
line-height: 100% !important;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
color: #99090a !important;
}
h1 a:active, h2 a:active, h3 a:active, h4 a:active, h5 a:active, h6 a:active {
color: #99090a !important;
}
h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
color: purple !important;
}
a{
color: #99090a !important;
}
table td {
border-collapse: collapse;
}
</style>
%body
%table#backgroundTable{border: "0", cellpadding: "0", cellspacing: "0"}
%tr
%td
%center
%table{border: "0", cellpadding: "0", cellspacing: "0", width: 700}
%tr
%td
%a(href="#{root_url}" title="RailsFrance.org" target="_blank" style="color: #99090a;")
%img(src="#{root_url.chop + image_path("mail/mail-railsfrance-header.jpg")}")
%tr
%td
= yield
%tr
%td{style: "text-align:right;"}
%i
= link_to "L’équipe RailsFrance.org", root_url, target: "_blank", style: "color: #99090a;"