FEATURE: remove table wrapping posts in notification emails

This commit is contained in:
Leo McArdle 2017-05-15 21:24:33 +01:00 committed by Robin Ward
parent 6a3c20561a
commit 59922ce0a4
2 changed files with 21 additions and 29 deletions

View File

@ -1,7 +1,4 @@
<table class='post-wrapper <%= post.whisper? ? "whisper" : "" %> <%= use_excerpt ? "excerpt" : ""%>'> <div class='post-wrapper <%= post.whisper? ? "whisper" : "" %> <%= use_excerpt ? "excerpt" : ""%>'>
<tbody>
<tr>
<td>
<table> <table>
<tr> <tr>
<td class='user-avatar'> <td class='user-avatar'>
@ -22,10 +19,5 @@
</td> </td>
</tr> </tr>
</table> </table>
</td> <div class='body'><%= format_for_email(post, use_excerpt) %></div>
</tr> </div>
<tr>
<td class='body'><%= format_for_email(post, use_excerpt) %></td>
</tr>
</tbody>
</table>

View File

@ -92,8 +92,8 @@ module Email
style('.user-avatar img', nil, width: '45', height: '45') style('.user-avatar img', nil, width: '45', height: '45')
style('hr', 'background-color: #ddd; height: 1px; border: 1px;') style('hr', 'background-color: #ddd; height: 1px; border: 1px;')
style('.rtl', 'direction: rtl;') style('.rtl', 'direction: rtl;')
style('td.body', 'padding-top:5px;', colspan: "2") style('div.body', 'padding-top:5px;')
style('.whisper td.body', 'font-style: italic; color: #9c9c9c;') style('.whisper div.body', 'font-style: italic; color: #9c9c9c;')
style('.lightbox-wrapper .meta', 'display: none') style('.lightbox-wrapper .meta', 'display: none')
correct_first_body_margin correct_first_body_margin
correct_footer_style correct_footer_style