Merge remote-tracking branch 'openstreetmap/pull/1469'
This commit is contained in:
commit
56e96d856c
4 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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}."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue