!!! %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 = t('devise.mailer.welcome', :email => @resource.email) %p - if @invs.count == 1 = t('.has_invited_you', :name => @invs.first.real_name + " (#{@invs.first.diaspora_handle})") - else = t('.have_invited_you', :names => (@invs.map{|inv| inv.from.real_name + " (#{inv.from.diaspora_handle})"}.join(","))) = t('.accept_at', :url => root_url) - @invs.each do |inv| - if inv.message = "#{inv.from.real_name}:" = "\"#{inv.message}\"" %p %p= link_to t('.accept'), accept_invitation_url(@resource, :invitation_token => @resource.invitation_token), :class => "large_text" %p.small = t('.ignore') %br/ = t('.no_account_till')