added white text on grey asset to mailer
This commit is contained in:
parent
5cdeed6c54
commit
a995d250f1
4 changed files with 4 additions and 4 deletions
|
|
@ -2,12 +2,12 @@ class Notifier < ActionMailer::Base
|
|||
include Magent::Async
|
||||
|
||||
default :from => "no-reply@joindiaspora.com"
|
||||
ATTACHMENT = File.read("#{Rails.root}/public/images/diaspora_caps.png")
|
||||
ATTACHMENT = File.read("#{Rails.root}/public/images/diaspora_white_on_grey.png")
|
||||
|
||||
def new_request(recipient, sender)
|
||||
@receiver = recipient
|
||||
@sender = sender
|
||||
attachments["diaspora_white.png"] = ATTACHMENT
|
||||
attachments["diaspora_white_on_grey.png"] = ATTACHMENT
|
||||
|
||||
mail(:to => "#{recipient.real_name} <#{recipient.email}>",
|
||||
:subject => "new Diaspora* friend request from #{@sender.real_name}", :host => APP_CONFIG[:terse_pod_url])
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
}
|
||||
%body
|
||||
%header
|
||||
= image_tag 'diaspora_white.png'
|
||||
= image_tag attachments['diaspora_white_on_grey.png'], :alt => "DIASPORA"
|
||||
#container
|
||||
%p
|
||||
Hello #{@receiver.profile.first_name}!
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
}
|
||||
%body
|
||||
%header
|
||||
= image_tag 'diaspora_white.png'
|
||||
= image_tag attachments['diaspora_white_on_grey.png'], :alt => "DIASPORA"
|
||||
#container
|
||||
%p
|
||||
Hello #{@receiver.profile.first_name}!
|
||||
|
|
|
|||
BIN
public/images/diaspora_white_on_grey.png
Normal file
BIN
public/images/diaspora_white_on_grey.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in a new issue