X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ad9f0b624728259fbe17f7b631d3efef5a488d3b..78137c93b507c6515a1549ec52b8c022d479f6d9:/app/mailers/user_mailer.rb diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 24444ce1b..ba2ff525d 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -44,6 +44,7 @@ class UserMailer < ApplicationMailer def gpx_success(trace, possible_points) with_recipient_locale trace.user do + @to_user = trace.user.display_name @trace_name = trace.name @trace_points = trace.size @trace_description = trace.description @@ -51,19 +52,20 @@ class UserMailer < ApplicationMailer @possible_points = possible_points mail :to => trace.user.email, - :subject => I18n.t("user_mailer.gpx_notification.success.subject") + :subject => I18n.t("user_mailer.gpx_success.subject") end end def gpx_failure(trace, error) with_recipient_locale trace.user do + @to_user = trace.user.display_name @trace_name = trace.name @trace_description = trace.description @trace_tags = trace.tags @error = error mail :to => trace.user.email, - :subject => I18n.t("user_mailer.gpx_notification.failure.subject") + :subject => I18n.t("user_mailer.gpx_failure.subject") end end