UX: show user email when unsubscribing

This commit is contained in:
Arpit Jalan 2017-06-09 09:19:09 +05:30
parent 8e2e962b1a
commit 1c0bbcd580
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@
<%- else %>
<br/>
<h2><%= t 'unsubscribe.title'%></h2>
<div><%= t('unsubscribe.email_description', email: @user.email).html_safe %></div>
<br/>
<%= form_tag(email_perform_unsubscribe_path(key: params[:key])) do %>
<%if @topic %>

View File

@ -728,6 +728,7 @@ en:
unsubscribe:
title: "Unsubscribe"
email_description: "You are unsubscribing emails for <b>%{email}</b>."
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}"