added the files

This commit is contained in:
zhitomirskiyi 2011-01-06 16:51:34 -08:00
parent 0c8e6b0ba1
commit 249b62445f
3 changed files with 36 additions and 0 deletions

View 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

View 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')

View 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')