Skip to content
Extraits de code Groupes Projets
Valider a995d250 rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

added white text on grey asset to mailer

parent 5cdeed6c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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}!
......
public/images/diaspora_white_on_grey.png

1,09 ko

0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter