66 lines
1.8 KiB
Text
66 lines
1.8 KiB
Text
!!!
|
|
%html
|
|
%head
|
|
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
|
|
:css
|
|
body{
|
|
width:600px;
|
|
font-family:'Arial','Helvetica',sans-serif;
|
|
font-size:14px;
|
|
color:#333;
|
|
}
|
|
#container{
|
|
margin-bottom:25px
|
|
min-height:400px;
|
|
padding-left:15px;
|
|
}
|
|
header{
|
|
background-color:#333;
|
|
padding: 15px;
|
|
margin-bottom: 25px;
|
|
}
|
|
p{
|
|
padding:5px;
|
|
}
|
|
p.small{
|
|
font-size:smaller;
|
|
color:#999;
|
|
font-style:italic;
|
|
}
|
|
a{
|
|
color:#107FC9;
|
|
font-weight:bold;
|
|
}
|
|
a:hover{
|
|
color: #22AAE0;
|
|
}
|
|
a:active{
|
|
color: #005D9C;
|
|
}
|
|
.large_text{
|
|
font-size:21px;
|
|
font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;
|
|
}
|
|
%body
|
|
%header
|
|
= image_tag '/images/diaspora_white.png'
|
|
#container
|
|
- @invs = @resource.invitations_to_me
|
|
%p
|
|
Hello #{@resource.email}!
|
|
%p
|
|
- if @invs.count == 1
|
|
= @invs.first.real_name + " (#{@invs.first.diaspora_handle})" + " has"
|
|
- else
|
|
= (@invs.map{|inv| inv.from.real_name + " (#{inv.from.diaspora_handle})"}.join(",") + " have")
|
|
= "invited you to join Diaspora at #{root_url}, you can accept it through the link below."
|
|
- @invs.each do |inv|
|
|
- if inv.message
|
|
= "#{inv.from.real_name}:"
|
|
= "\"#{inv.message}\""
|
|
%p
|
|
%p= link_to 'Accept invitation', accept_invitation_url(@resource, :invitation_token => @resource.invitation_token), :class => "large_text"
|
|
%p.small
|
|
If you don't want to accept the invitation, please ignore this email.
|
|
%br/
|
|
Your account won't be created until you access the link above and sign up.
|