Skip to content

Commit

Permalink
AO3-4308 Update claim email text with t's suggestion (otwcode#4796)
Browse files Browse the repository at this point in the history
* AO3-4308 Update claim email text with t's suggestion

* Group text/html under 1 parent

* Match T's suggested keys
  • Loading branch information
brianjaustin authored Apr 23, 2024
1 parent 90a1406 commit e308ea9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/user_mailer/claim_notification.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<% end %>
</ul>

<p><%= t(".redirects") %></p>
<p><%= t(".redirects.html", negation: style_bold(t(".redirects.negation"))) %></p>

<p><%= t(".update_redirect.html", contact_open_doors_link: opendoors_link(t(".update_redirect.contact_open_doors"))) %></p>

Expand Down
2 changes: 1 addition & 1 deletion app/views/user_mailer/claim_notification.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<% end %>
<% end %>
<%= t(".redirects") %>
<%= t(".redirects.html", negation: t(".redirects.negation")) %>
<%= t(".update_redirect.text", open_doors_url: "https://opendoors.transformativeworks.org/en/contact-open-doors/") %>
Expand Down
4 changes: 3 additions & 1 deletion config/locales/mailers/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ en:
contact_support: contact AO3 Support
html: For other inquiries, please %{contact_support_link}.
text: For other inquiries, please contact AO3 Support at %{support_url}.
redirects: To preserve rec lists and bookmarks, the imported archive's web addresses may redirect to the imported copy of these works for a limited time (check the announcement post for your archive to be sure). If you've already uploaded a copy of these works and you did NOT use the import from URL feature, there will be two copies of the same work on the archive.
redirects:
html: To preserve rec lists and bookmarks, the imported archive's web addresses may redirect to the imported copy of these works for a limited time (check the announcement post for your archive to be sure). If you've already uploaded a copy of these works and you did %{negation} use the import from URL feature, there will be two copies of the same work on the AO3.
negation: NOT
subject: "[%{app_name}] Works uploaded"
update_redirect:
contact_open_doors: contact Open Doors
Expand Down
6 changes: 6 additions & 0 deletions test/mailers/previews/user_mailer_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ def feedback_response
UserMailer.feedback(feedback.id)
end

def claim_notification_registered
work = create(:work)
creator_id = work.pseuds.first.user.id
UserMailer.claim_notification(creator_id, [work.id], true)
end

private

def creatorship_notification_data
Expand Down

0 comments on commit e308ea9

Please sign in to comment.