added the files
This commit is contained in:
parent
0c8e6b0ba1
commit
249b62445f
3 changed files with 36 additions and 0 deletions
10
app/models/jobs/mail_also_commented.rb
Normal file
10
app/models/jobs/mail_also_commented.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
module Jobs
|
||||||
|
class MailAlsoCommented
|
||||||
|
extend ResqueJobLogging
|
||||||
|
@queue = :mail
|
||||||
|
def self.perform(recipient_id, sender_id, comment_id)
|
||||||
|
Notifier.also_commented(recipient_id, sender_id, comment_id).deliver
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
17
app/views/notifier/also_commented.html.haml
Normal file
17
app/views/notifier/also_commented.html.haml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
%p
|
||||||
|
= t('notifier.hello', :name => @receiver.profile.first_name)
|
||||||
|
%p
|
||||||
|
= "#{@sender.name} (#{@sender.diaspora_handle})"
|
||||||
|
= t('.commented', :post_author => @post_author_name)
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
= @comment.text
|
||||||
|
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
= link_to t('.sign_in'), status_message_url(@comment.post)
|
||||||
|
|
||||||
|
%br
|
||||||
|
= t('notifier.love')
|
||||||
|
%br
|
||||||
|
= t('notifier.diaspora')
|
||||||
9
app/views/notifier/also_commented.text.haml
Normal file
9
app/views/notifier/also_commented.text.haml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
= t('notifier.hello', :name => @receiver.profile.first_name)
|
||||||
|
= "#{@sender.name} (#{@sender.diaspora_handle})"
|
||||||
|
= t('notifier.also_commented.commented')
|
||||||
|
|
||||||
|
|
||||||
|
= @comment.text
|
||||||
|
|
||||||
|
= "#{t('notifier.love')} \n"
|
||||||
|
= t('notifier.diaspora')
|
||||||
Loading…
Reference in a new issue