X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e9ad6d852c437a00e6cf9f0f529525a3b33d9901..48b85a7fee26f11217a6ef5141c1dce9ca239bb1:/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