Included greeting string in changeset_comment_notification email
This commit is contained in:
parent
eb8d7be916
commit
b69e8b5c42
3 changed files with 5 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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue