added white text on grey asset to mailer

This commit is contained in:
danielvincent 2010-11-02 17:19:49 -07:00
parent 5cdeed6c54
commit a995d250f1
4 changed files with 4 additions and 4 deletions

View file

@ -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])

View file

@ -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}!

View file

@ -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}!

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB