Remove unread counts from last section of summary email, and rename it "New for you"

This commit is contained in:
Neil Lalonde 2016-12-28 14:05:59 -05:00
parent f3b4a889b2
commit 67347432b7
3 changed files with 1 additions and 9 deletions

View File

@ -155,9 +155,6 @@ class UserNotifications < ActionMailer::Base
[]
end
topic_lookup = TopicUser.lookup_for(user, @other_new_for_you)
@other_new_for_you.each { |t| t.user_data = topic_lookup[t.id] }
if @popular_topics.present?
opts = {
from_alias: I18n.t('user_notifications.digest.from', site_name: SiteSetting.title),

View File

@ -330,11 +330,6 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo
<!-- Begin new topic -->
<tr style="vertical-align:top;">
<td style="padding:8px;text-align:left;">
<p class="with-accent-colors" style="border-radius:50%;height:30px;line-height:30px;margin:0 0 10px 0;padding:0;text-align:center;width:30px;">
<%= t.user_data ? (t.highest_post_number - (t.user_data.last_read_post_number || 0)) : t.highest_post_number %>
</p>
</td>
<td style="padding:8px;text-align:left;">
<a href="<%= Discourse.base_url_no_prefix + t.relative_url %>" style="font-weight:400;line-height:1.3;margin:0;padding:0;text-decoration:none">
<strong><%= t.title.truncate(60, separator: /\s/) -%></strong>

View File

@ -2400,7 +2400,7 @@ en:
join_the_discussion: "Read More"
popular_posts: "Popular Posts"
from_topic_label: "From"
more_new: "New in topics and categories you follow"
more_new: "New for you"
subject_template: "[%{site_name}] Summary"
unsubscribe: "This summary is sent from %{site_link} when we haven't seen you in a while. To unsubscribe %{unsubscribe_link}."
click_here: "click here"