Skip to content

Commit

Permalink
Update email template (#46)
Browse files Browse the repository at this point in the history
* Update email per VV

* Update en.yml

* Fixing bug with set name in title. Fixing typo.

* Change the subject line

Co-authored-by: Maura C <[email protected]>
  • Loading branch information
phil-plencner-hl and dl-maura authored Oct 27, 2022
1 parent ad73ebe commit f882614
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/mailer/spotlight/harvesting_complete_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def harvest_set_completed(job)
@total_errors = job.total_errors
@total_warnings = job.total_warnings
@user = job.user
subject = "Harvest indexing complete for #{@set}"
subject = "Harvesting complete for #{@set}"
subject += " with harvesting #{@total_errors} #{'error'.pluralize(@total_errors)}" if @total_errors.positive?
mail(to: @user.email, from: '[email protected]', subject: subject)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p><%= t :".title" %></p>
<p><%= t :".title", set: @set %></p>

<p><%= t :".body", set: @set, title: @exhibit.title %></p>

Expand Down
5 changes: 3 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ en:
success: "Successfully scheduled '%{set}' for harvesting."
harvesting_complete_mailer:
harvest_set_completed:
title: "Your harvest has just finished being processed."
body: "The %{set} set has been indexed from the harvest and added to the exhibit %{title}."
title: "Harvesting complete for %{set}"
body: "The %{set} set has just finished harvesting to the %{title} exhibit.\nItems may still be in the process of indexing. See delayed_jobs for current status."

0 comments on commit f882614

Please sign in to comment.