Skip to content

Commit

Permalink
AO3-4305 Remove quotes from title in HTML work deletion emails
Browse files Browse the repository at this point in the history
* Draft of fix

* Try the other way

* Try again
  • Loading branch information
zz9pzza authored and sarken committed Feb 8, 2017
1 parent 7c255c5 commit 1fd2e90
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/views/user_mailer/delete_work_notification.html.erb
Expand Up @@ -2,10 +2,10 @@
<% pretty_title = "<i>#{style_bold(@work.title.html_safe)}</i>".html_safe %>
<p><%= t('.hello', user: @user.default_pseud.byline) %></p>
<p><%= (@work.pseuds.count > 1 && @user != User.current_user) ?
t('.part1_other',
t('.html.part1_other',
title: pretty_title,
pseud: style_pseud_link(User.current_user.default_pseud)).html_safe :
t('.part1_yourself',
t('.html.part1_yourself',
title: pretty_title).html_safe %></p>
<p><%= t('.html.part2', support: support_link(t '.support')).html_safe %></p>
<p><%= t('.part3') %></p>
Expand Down
4 changes: 2 additions & 2 deletions app/views/user_mailer/delete_work_notification.text.erb
Expand Up @@ -2,10 +2,10 @@
<%= t('.hello', user: @user.default_pseud.byline) %>
<%= (@work.pseuds.count > 1 && @user != User.current_user) ?
t('.part1_other',
t('.text.part1_other',
title: @work.title,
pseud: text_pseud(User.current_user.default_pseud)) :
t('.part1_yourself',
t('.text.part1_yourself',
title: @work.title) %>
<%= t('.text.part2', support: t('.support'), url: new_feedback_report_url) %>
Expand Down
6 changes: 4 additions & 2 deletions config/locales/en.yml
Expand Up @@ -71,14 +71,16 @@ en:
subject: "[%{app_name}] Your work has been deleted"
support: "contact Support"
hello: "Dear %{user},"
part1_other: "Your work \"%{title}\" was deleted at the request of %{pseud}."
part1_yourself: "Your work \"%{title}\" was deleted at your request."
part2: "If you have questions, please %{support}."
part3: "Attached is a copy of your work for your reference."
html:
part2: "If you have questions, please %{support}."
part1_other: "Your work %{title} was deleted at the request of %{pseud}."
part1_yourself: "Your work %{title} was deleted at your request."
text:
part2: "If you have questions, please %{support} (%{url})."
part1_other: "Your work \"%{title}\" was deleted at the request of %{pseud}."
part1_yourself: "Your work \"%{title}\" was deleted at your request."
coauthor_notification:
subject: "[%{app_name}] Co-creator Notification"
edit_the_work: "Edit the work"
Expand Down

0 comments on commit 1fd2e90

Please sign in to comment.