mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 02:01:15 +08:00
FIX: Footer formatting in digest emails
This commit is contained in:
@ -35,9 +35,9 @@
|
|||||||
|
|
||||||
<%= raw(@markdown_linker.references) %>
|
<%= raw(@markdown_linker.references) %>
|
||||||
|
|
||||||
<div class='footer-notice'><%=raw(t :'user_notifications.digest.unsubscribe',
|
<span class='footer-notice'><%=raw(t :'user_notifications.digest.unsubscribe',
|
||||||
site_link: site_link,
|
site_link: site_link,
|
||||||
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_path(key: @user.temporary_key)))) %></div>
|
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_path(key: @user.temporary_key)))) %></span>
|
||||||
|
|
||||||
<%= raw(@markdown_linker.references) %>
|
<%= raw(@markdown_linker.references) %>
|
||||||
|
|
||||||
|
@ -24,8 +24,6 @@ module Email
|
|||||||
img['src'] = "#{Discourse.base_url}#{img['src']}"
|
img['src'] = "#{Discourse.base_url}#{img['src']}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
style('div.post-indent',' margin-left: 15px; margin-top: 20px; max-width: 694px;')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def format_notification
|
def format_notification
|
||||||
@ -54,7 +52,7 @@ module Email
|
|||||||
style('li', 'padding-bottom: 10px')
|
style('li', 'padding-bottom: 10px')
|
||||||
style('div.digest-post', 'margin-left: 15px; margin-top: 20px; max-width: 694px;')
|
style('div.digest-post', 'margin-left: 15px; margin-top: 20px; max-width: 694px;')
|
||||||
style('div.digest-post h1', 'font-size: 20px;')
|
style('div.digest-post h1', 'font-size: 20px;')
|
||||||
style('div.footer-notice', 'color:#666; font-size:80%')
|
style('span.footer-notice', 'color:#666; font-size:80%')
|
||||||
|
|
||||||
@fragment.css('pre').each do |pre|
|
@fragment.css('pre').each do |pre|
|
||||||
pre.replace(pre.text)
|
pre.replace(pre.text)
|
||||||
|
Reference in New Issue
Block a user