From: Dan Karran Date: Sun, 16 Sep 2007 14:52:50 +0000 (+0000) Subject: Include message body in notification emails for convenience. X-Git-Tag: live~8120 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/78ef65aff71b8e7c000179f1d561dcc1e10b6d84 Include message body in notification emails for convenience. --- diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 00bec921c..af66cd7f9 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -46,6 +46,7 @@ class Notifier < ActionMailer::Base @subject = "[OpenStreetMap] #{@from_user.display_name} sent you a new message" @body['to_user'] = @to_user.display_name @body['from_user'] = @from_user.display_name + @body['body'] = message.body @body['subject'] = message.title @body['url'] = "http://#{SERVER_URL}/message/read/#{message.id}" end diff --git a/app/views/notifier/message_notification.rhtml b/app/views/notifier/message_notification.rhtml index 79a03d0f1..abbd21e5c 100644 --- a/app/views/notifier/message_notification.rhtml +++ b/app/views/notifier/message_notification.rhtml @@ -1,5 +1,9 @@ Hi <%= @to_user %>, -<%= @from_user %> has sent you a message through OpenStreetMap with the subject "<%= @subject %>". You can read the message at: +<%= @from_user %> has sent you a message through OpenStreetMap with the subject "<%= @subject %>": -<%= @url %> \ No newline at end of file +== +<%= @body %> +== + +You can also read the message at <%= @url %> \ No newline at end of file