FIX: Footer formatting in digest emails
This commit is contained in:
parent
b6285b85d2
commit
40599d20e8
|
@ -35,9 +35,9 @@
|
|||
|
||||
<%= 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,
|
||||
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) %>
|
||||
|
||||
|
|
|
@ -24,8 +24,6 @@ module Email
|
|||
img['src'] = "#{Discourse.base_url}#{img['src']}"
|
||||
end
|
||||
end
|
||||
|
||||
style('div.post-indent',' margin-left: 15px; margin-top: 20px; max-width: 694px;')
|
||||
end
|
||||
|
||||
def format_notification
|
||||
|
@ -54,7 +52,7 @@ module Email
|
|||
style('li', 'padding-bottom: 10px')
|
||||
style('div.digest-post', 'margin-left: 15px; margin-top: 20px; max-width: 694px;')
|
||||
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|
|
||||
pre.replace(pre.text)
|
||||
|
|
Loading…
Reference in New Issue