Commit d1f481c3ca26578ef59ec9d09402e8f89e2a332c
1 parent
aeec7189
Exists in
master
and in
1 other branch
Fixed email layout to only use 1 table (was breaking gmail) [ci skip]
Showing
1 changed file
with
3 additions
and
6 deletions
Show diff stats
app/views/layouts/mailer.html.haml
| 1 | %html | 1 | %html |
| 2 | %head | 2 | %head |
| 3 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
| 3 | :css | 4 | :css |
| 4 | td.header { | 5 | td.header { |
| 5 | padding: 10px 20px 10px 20px; | 6 | padding: 10px 20px 10px 20px; |
| @@ -50,8 +51,8 @@ | @@ -50,8 +51,8 @@ | ||
| 50 | p.monospace, p.backtrace { font-family: monospace; } | 51 | p.monospace, p.backtrace { font-family: monospace; } |
| 51 | p.backtrace { margin-bottom: 2px; } | 52 | p.backtrace { margin-bottom: 2px; } |
| 52 | 53 | ||
| 53 | - %body | ||
| 54 | - %div | 54 | + %body(leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0") |
| 55 | + %center | ||
| 55 | %table(cellpadding="0" cellspacing="0" border="0" width="100%") | 56 | %table(cellpadding="0" cellspacing="0" border="0" width="100%") |
| 56 | %tbody | 57 | %tbody |
| 57 | %tr | 58 | %tr |
| @@ -60,12 +61,8 @@ | @@ -60,12 +61,8 @@ | ||
| 60 | 61 | ||
| 61 | = yield | 62 | = yield |
| 62 | 63 | ||
| 63 | - %table(cellpadding="0" cellspacing="0" border="0" align="left" width="100%") | ||
| 64 | - %tbody | ||
| 65 | %tr | 64 | %tr |
| 66 | %td.footer | 65 | %td.footer |
| 67 | Your loyal servant, | 66 | Your loyal servant, |
| 68 | = link_to 'Errbit', root_path | 67 | = link_to 'Errbit', root_path |
| 69 | 68 | ||
| 70 | - %br | ||
| 71 | - |