]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'openstreetmap/pull/1469'
authorTom Hughes <tom@compton.nu>
Tue, 28 Feb 2017 00:21:23 +0000 (00:21 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 28 Feb 2017 00:21:23 +0000 (00:21 +0000)
app/models/notifier.rb
app/views/notifier/changeset_comment_notification.html.erb
app/views/notifier/changeset_comment_notification.text.erb
config/locales/en.yml

index 1eb39e67844a8b2295f343284030d7b75c303f40..8f9e3e2954814e45151632c0ba88ca0db8fa6dfd 100644 (file)
@@ -167,6 +167,7 @@ class Notifier < ActionMailer::Base
 
   def changeset_comment_notification(comment, recipient)
     with_recipient_locale recipient do
+      @to_user = recipient.display_name
       @changeset_url = changeset_url(comment.changeset, :host => SERVER_URL)
       @comment = comment.body
       @owner = recipient == comment.changeset.user
index 19ca33d85e2041b5b9546c98d98e3dfe2ecde3f5..80f9d8aa11b35a6e438f0b640bfb08bb8aec86df 100644 (file)
@@ -1,3 +1,6 @@
+<p>
+  <%= t 'notifier.changeset_comment_notification.hi', :to_user => @to_user %>
+</p>
 <p>
   <% if @owner %>
     <%= raw t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => link_to_user(@commenter), :time => @time %>
index 5da6feddcb0985ab14a2b969097b943de4df1c82..af1176b53f4ad7d7704d4e4d2815b14926e3f166 100644 (file)
@@ -1,4 +1,4 @@
-<%= t 'notifier.changeset_comment_notification.greeting' %>
+<%= t 'notifier.changeset_comment_notification.hi', :to_user => @to_user %>
 
 <% if @owner %>
   <%= t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => @commenter, :time => @time %>
index c709726ac7adc432090552cd1f97f5360fffbc36..d71568ceb50e7852ce327c4bf10ffb3ac126265c 100644 (file)
@@ -1243,6 +1243,7 @@ en:
       header: "%{from_user} has sent you a message through OpenStreetMap with the subject %{subject}:"
       footer_html: "You can also read the message at %{readurl} and you can reply at %{replyurl}"
     friend_notification:
+      hi: "Hi %{to_user},"
       subject: "[OpenStreetMap] %{user} added you as a friend"
       had_added_you: "%{user} has added you as a friend on OpenStreetMap."
       see_their_profile: "You can see their profile at %{userurl}."