mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-25 06:11:20 -04:00
FIX: Footer formatting in digest emails
This commit is contained in:
parent
b6285b85d2
commit
40599d20e8
2 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue