mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Small improvements to digest emails and preview mechanism.
This commit is contained in:
parent
45cff9c674
commit
8b4e3402c2
6 changed files with 11 additions and 4 deletions
|
@ -21,7 +21,7 @@ module Email
|
|||
end
|
||||
|
||||
def html
|
||||
cooked = PrettyText.cook(text, environment: 'email')
|
||||
cooked = PrettyText.cook(text)
|
||||
|
||||
if @opts[:html_template]
|
||||
ActionView::Base.new(Rails.configuration.paths["app/views"]).render(
|
||||
|
|
|
@ -36,6 +36,10 @@ module Email
|
|||
pre.replace(pre.text)
|
||||
end
|
||||
|
||||
fragment.css('div.digest-post').each do |div|
|
||||
div['style'] = 'margin-left: 15px; margin-top: 20px; max-width: 694px;'
|
||||
end
|
||||
|
||||
fragment.to_html
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue