negos_app/app/views/customer_mailer/new_user.html.haml.old
2016-02-16 21:09:48 +01:00

67 lines
1.9 KiB
Plaintext
Executable File

-if @customer and @parent
!!!
%html{:lang => "fr" }
%head
%meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
:scss
body{
font-family:'Gill sans', helvetica,sans-serif;
padding:0;
margin:0;
background:#F0F0F0
}
hr{
border:0px;
border-top:1px solid #eeeeee;
}
.content{
padding:10px;
}
.top{
background:url('https://sideplace.com/fond-mail.jpg') center center no-repeat #9EAFC3;
background-size:100%;
background-size:cover;
text-align:center;
color:white;
h1{
font-size:30px;
font-weight:normal;
text-transform:uppercase;
}
p{
margin:auto;
max-width:400px;
font-size:20px;
}
}
.top a{
color:white;
}
%body
.top
=image_tag "https://sideplace.com/new_user.png", :style => "height:160px;margin-top:120px;"
%h1
Félicitations
=@parent.firstname if @parent.firstname?
!
%p
-if !@customer.pro
=@customer.pseudo
vient de s'inscrire sur Sideplace en utilisant votre code de recommandation, vous avez donc un nouvel affilié direct :)
-else
Un compte pro ("
=@customer.organisation
") vient d'être créé sur Sideplace en utilisant votre code de recommandation, vous avez donc un nouvel affilié direct :)
%div{:style => "text-align:right"}
=link_to image_tag("https://sideplace.com/logo.png", :style => "width:180px;margin:10px;margin-top:120px;border:none;", :id => "logo"), "https://sideplace.com"
.content= yield