From a4a53d6500ecc42ee4c426586159968eb6c6c852 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 17 Jun 2016 15:06:44 +0530 Subject: [PATCH] FIX: apply style formatting on post notification emails --- app/views/email/_post.html.erb | 2 +- lib/email/styles.rb | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/views/email/_post.html.erb b/app/views/email/_post.html.erb index 42bb7afb836..6a324e301d4 100644 --- a/app/views/email/_post.html.erb +++ b/app/views/email/_post.html.erb @@ -23,7 +23,7 @@ - <%= format_for_email(post, use_excerpt) %> + <%= format_for_email(post, use_excerpt, :notification) %> diff --git a/lib/email/styles.rb b/lib/email/styles.rb index 38c1050d043..a8d646ddff1 100644 --- a/lib/email/styles.rb +++ b/lib/email/styles.rb @@ -110,9 +110,6 @@ module Email style('aside.quote div.info-line', 'color: #666; margin: 10px 0') style('aside.quote .avatar', 'margin-right: 5px; width:20px; height:20px') - # regular post quotes - style('aside .title', 'border-left: 5px solid #e9e9e9; background-color: #f8f8f8; margin: 0; padding-left: 1em; padding-top: 10px;') - style('aside .title img', 'margin-left: 5px;') style('blockquote', 'border-left: 5px solid #e9e9e9; background-color: #f8f8f8; margin: 0;') style('blockquote > p', 'padding: 1em;')