Skip to content

Commit

Permalink
Remove environment in mail subjects (#1017)
Browse files Browse the repository at this point in the history
* Fix "environment" substitution in mail subjects

* Remove environment in mail subjects
  • Loading branch information
Novruu authored May 11, 2024
1 parent 9e4781e commit e21f2b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/mailers/notification_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def new_log(log, user)
@log = log
mail(to: user.email,
reply_to: reply_to_address(log),
subject: I18n.t('notification_mailer.new_log.subject', project: log.project.display_name, environment: Rails.env)
subject: I18n.t('notification_mailer.new_log.subject', project: log.project.display_name)
)
end
end
2 changes: 1 addition & 1 deletion config/locales/en/notification_mailer.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ en:
contact: "Reply to this email to contact the author of the log."
created: "A new log has been created on %{project} by %{agent}"
logs: "Logs"
subject: "[%environment] [Madeline] New log on %{project}"
subject: "[Madeline] New log on %{project}"
timeline: "Timeline"
view_on_site:
html: "View the log on Madeline"
Expand Down
2 changes: 1 addition & 1 deletion config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ es:
contact: "Responder a este mail para contactar al autor del apunte."
created: "Un nuevo apunte ha sido creado por %{agent} en %{project}"
logs: "Apuntes"
subject: "[%environment] [Madeline] Nuevo apunte en %{project}"
subject: "[Madeline] Nuevo apunte en %{project}"
timeline: "Línea de Tiempo"
view_on_site:
html: "Ver el apunte en Madeline"
Expand Down
2 changes: 1 addition & 1 deletion config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fr:
contact: "Reply to this email to contact the author of the log."
created: "A new log has been created on %{project} by %{agent}"
logs: "Journaux"
subject: "[%environment] [Madeline] New log on %{project}"
subject: "[Madeline] New log on %{project}"
timeline: "Timeline"
view_on_site:
html: "View the log on Madeline"
Expand Down

0 comments on commit e21f2b5

Please sign in to comment.