diff --git a/app/views/email/_post.html.erb b/app/views/email/_post.html.erb index 569a12e0582..3a56269ae26 100644 --- a/app/views/email/_post.html.erb +++ b/app/views/email/_post.html.erb @@ -1,31 +1,23 @@ - - +
+
+ - - - - -
+ + - - - - - -
- - - <%- if show_username_on_post(post) %> - <%= post.user.username %> - <% end %> - <%- if show_name_on_post(post) %> - <%= post.user.name %> - <% end %> - <%- if post.user.title.present? %> - <%= post.user.title %> - <% end %> -
- <%= l post.created_at, format: :short_no_year %> -
+ <%- if show_username_on_post(post) %> + <%= post.user.username %> + <% end %> + <%- if show_name_on_post(post) %> + <%= post.user.name %> + <% end %> + <%- if post.user.title.present? %> + <%= post.user.title %> + <% end %> +
+ <%= l post.created_at, format: :short_no_year %>
<%= format_for_email(post, use_excerpt) %>
+ +
<%= format_for_email(post, use_excerpt) %>
+ diff --git a/lib/email/styles.rb b/lib/email/styles.rb index 9dd34e5da49..eb3074f5b87 100644 --- a/lib/email/styles.rb +++ b/lib/email/styles.rb @@ -92,8 +92,8 @@ module Email style('.user-avatar img', nil, width: '45', height: '45') style('hr', 'background-color: #ddd; height: 1px; border: 1px;') style('.rtl', 'direction: rtl;') - style('td.body', 'padding-top:5px;', colspan: "2") - style('.whisper td.body', 'font-style: italic; color: #9c9c9c;') + style('div.body', 'padding-top:5px;') + style('.whisper div.body', 'font-style: italic; color: #9c9c9c;') style('.lightbox-wrapper .meta', 'display: none') correct_first_body_margin correct_footer_style