From 1c0bbcd580e2cb7498691f8571e7f69e5274bb22 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 9 Jun 2017 09:19:09 +0530 Subject: [PATCH] UX: show user email when unsubscribing --- app/views/email/unsubscribe.html.erb | 1 + config/locales/server.en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/views/email/unsubscribe.html.erb b/app/views/email/unsubscribe.html.erb index b4d543a16b6..d5b2900e41b 100644 --- a/app/views/email/unsubscribe.html.erb +++ b/app/views/email/unsubscribe.html.erb @@ -13,6 +13,7 @@ <%- else %>

<%= t 'unsubscribe.title'%>

+
<%= t('unsubscribe.email_description', email: @user.email).html_safe %>

<%= form_tag(email_perform_unsubscribe_path(key: params[:key])) do %> <%if @topic %> diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 1d68e28403d..0d31ca91d95 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -728,6 +728,7 @@ en: unsubscribe: title: "Unsubscribe" + email_description: "You are unsubscribing emails for %{email}." stop_watching_topic: "Stop watching this topic, %{link}" mute_topic: "Mute all notifications for this topic, %{link}" unwatch_category: "Stop watching all topics in %{category}"