From 67347432b74b45a00357bd14c7fb928c281744a3 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 28 Dec 2016 14:05:59 -0500 Subject: [PATCH] Remove unread counts from last section of summary email, and rename it "New for you" --- app/mailers/user_notifications.rb | 3 --- app/views/user_notifications/digest.html.erb | 5 ----- config/locales/server.en.yml | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index cb1e2f5ca0b..77b7335959c 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -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), diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 27a7d393106..0b6a9d8d6c2 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -330,11 +330,6 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo - -

- <%= t.user_data ? (t.highest_post_number - (t.user_data.last_read_post_number || 0)) : t.highest_post_number %> -

- <%= t.title.truncate(60, separator: /\s/) -%> diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 6ae6430e9f9..7ad38baffbe 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -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"