From d1f481c3ca26578ef59ec9d09402e8f89e2a332c Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Sun, 4 Sep 2011 02:20:22 +0800 Subject: [PATCH] Fixed email layout to only use 1 table (was breaking gmail) [ci skip] --- app/views/layouts/mailer.html.haml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/views/layouts/mailer.html.haml b/app/views/layouts/mailer.html.haml index dc4791e..40df95b 100644 --- a/app/views/layouts/mailer.html.haml +++ b/app/views/layouts/mailer.html.haml @@ -1,5 +1,6 @@ %html %head + :css td.header { padding: 10px 20px 10px 20px; @@ -50,8 +51,8 @@ p.monospace, p.backtrace { font-family: monospace; } p.backtrace { margin-bottom: 2px; } - %body - %div + %body(leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0") + %center %table(cellpadding="0" cellspacing="0" border="0" width="100%") %tbody %tr @@ -60,12 +61,8 @@ = yield - %table(cellpadding="0" cellspacing="0" border="0" align="left" width="100%") - %tbody %tr %td.footer Your loyal servant, = link_to 'Errbit', root_path - %br - -- libgit2 0.21.2