Included greeting string in changeset_comment_notification email

This commit is contained in:
Herve Saint-Amand 2017-02-27 22:36:09 +00:00
parent eb8d7be916
commit b69e8b5c42
3 changed files with 5 additions and 1 deletions

View 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

View 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 %>

View 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 %>