digest email style tweak

This commit is contained in:
Jeff Atwood 2014-11-13 13:44:48 -08:00
parent 9520cc0613
commit 64140c5fe0
3 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
<table style="border: 1px solid #ddd;" cellspacing="0" cellpadding="0">
<table style="border: 20px solid #eee;" cellspacing="0" cellpadding="0">
<tr>
<td style="padding: 10px 10px; background-color: #<%= @header_color %>;">
<a href="<%= Discourse.base_url %>">
@ -65,13 +65,13 @@
<p><%= t('user_notifications.digest.more_topics', last_seen_at: @last_seen_at, new_topics_since_seen: @new_topics_since_seen) %></p>
<%- end %>
<%- end -%>
<hr/>
<div class='footer'>
<%=raw(t :'user_notifications.digest.unsubscribe',
site_link: html_site_link,
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_url(host: Discourse.base_url, key: @user.temporary_key))) %>
</div>
</td>
</tr>
</table>
<div class='footer'>
<%=raw(t :'user_notifications.digest.unsubscribe',
site_link: html_site_link,
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_url(host: Discourse.base_url, key: @user.temporary_key))) %>
</div>

View File

@ -1702,8 +1702,8 @@ en:
click_here: "click here"
from: "%{site_name} digest"
read_more: "Read More"
more_topics: "There were %{new_topics_since_seen} other new topics posted since you last visited on %{last_seen_at}."
more_topics_category: "There were %{new_topics_since_seen} other new topics posted in these categories since you last visited on %{last_seen_at}:"
more_topics: "There were %{new_topics_since_seen} other new topics."
more_topics_category: "There were %{new_topics_since_seen} other new topics:"
posts:
one: "1 post"

View File

@ -129,7 +129,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', 'color:#666; font-size:80%')
style('div.footer', 'color:#666; font-size:80%; text-align:center; padding-top:15px;')
style('span.post-count', 'margin: 0 5px; color: #777;')
style('pre', 'word-wrap: break-word; max-width: 694px;')
style('code', 'background-color: #f1f1ff; padding: 2px 5px;')