.center
  %h1=qit("title-detail-affilie","Détail d'un affilié")
  -if @annonce_account.not_blocked
    %div{:style => "float:left;"}=render :partial => "public/annonce_accounts/filleul", :object => @annonce_account, :locals => {:inline_b  => true}
    %p
      %br 
      %br 
      =qit("date-inscription-label","Date d'inscription :") 
      =l @annonce_account.created_at
    %p
      =link_to @annonce_account.annonces.valid_to_show.count.to_s + " "+qit("annonce-s","annonce(s)"), public_annonce_account_path(@annonce_account)
    %p
      =qit("nbr-coffrets-achetes-label","Nombre de coffrets achetés :")
      =@annonce_account.orders.where(:paid => true).count
    %p
      =qit("nbr-affilies-label","Nombre d'affiliés :")
      =@annonce_account.children.count
    .clear
    %hr
    %h4=qit("lien-entre-cet-affilie-et-vous-label","Lien entre cet affilié et vous :")

    -ancests = []
    -parent = @annonce_account.parent
    -while parent != current_annonce_account
      -ancests << parent
      -parent = parent.parent
    =render :partial => "public/annonce_accounts/filleul", :object => current_annonce_account, :locals => {:inline_b  => true}
 
    -ancests.reverse.each do |ancest|
  
    
      %span{:style => "position:relative;top:-50px;"}
        >
      =render :partial => "public/annonce_accounts/filleul", :object => ancest, :locals => {:inline_b  => true}
    %span{:style => "position:relative;top:-50px;"}
      >
    =render :partial => "public/annonce_accounts/filleul", :object => @annonce_account, :locals => {:inline_b  => true}

    %hr
  -else
    =qit "utilisateur bloqué", "Compte utilisateur supprimé ou bloqué "

    