From eee00b5bb5038072af643fd92898475d76e4834b Mon Sep 17 00:00:00 2001
From: Neil Lalonde <neillalonde@gmail.com>
Date: Mon, 26 Jun 2017 12:27:16 -0400
Subject: [PATCH] UX: include a link to change email preferences at the bottom
 of summary emails as an alternative to unsubscribing

---
 app/views/user_notifications/digest.html.erb | 1 +
 config/locales/server.en.yml                 | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb
index 4c93936cc45..df8efadc041 100644
--- a/app/views/user_notifications/digest.html.erb
+++ b/app/views/user_notifications/digest.html.erb
@@ -419,6 +419,7 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo
 <div dir="<%= rtl? ? 'rtl' : 'ltr' %>" class='footer'>
   <%=raw(t 'user_notifications.digest.unsubscribe',
            site_link: html_site_link(@anchor_color),
+           email_settings_url: Discourse.base_url + '/my/preferences/emails',
            unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_url(host: Discourse.base_url_no_prefix, key: @unsubscribe_key), {:style=>"color: ##{@anchor_color}"}))  %>
 </div>
 
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 34fc135fd58..150f2bcf7c8 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -2587,7 +2587,7 @@ en:
       popular_posts: "Popular Posts"
       more_new: "New for you"
       subject_template: "[%{email_prefix}] Summary"
-      unsubscribe: "This summary is sent from %{site_link} when we haven't seen you in a while. To unsubscribe %{unsubscribe_link}."
+      unsubscribe: "This summary is sent from %{site_link} when we haven't seen you in a while. Change <a href='%{email_settings_url}'>your email settings</a>, or %{unsubscribe_link} to unsubscribe."
       click_here: "click here"
       from: "%{site_name} summary"
       preheader: "A brief summary since your last visit on %{last_seen_at}"