%tr#annonce_account_row{:id => annonce_account.id, :class => ("danger" if annonce_account.blocked)}
  %td
    =image_tag(annonce_account.avatar_url, :style => "height:40px;max-width:40px;width:40px !important;border-radius:50%;")
  %td
    =annonce_account.pseudo_admin
  %td
    =link_to ic(:facebook), "http://facebook.com/#{annonce_account.uid}", :target => "_blank" if annonce_account.provider == "facebook"
  %td
    = "Oui" if annonce_account.parent_id
  %td
    =annonce_account.country
  %td=annonce_account.email
  %td
    =link_to public_annonce_account_path(annonce_account) do
      =annonce_account.annonces.count
      =ic(:eye)
    
  %td=number_to_currency annonce_account.orders.where(:paid => true).sum(:price_ht)
  %td=number_to_currency annonce_account.commissions.sum(:amount)
 

  %td.actions
    =# link_to i(:"trash-o"), [:admin, annonce_account], :confirm => 'Voulez-vous vraiment supprimer ce compte utilisateur ?', :method => :delete, :remote => true
    = link_to i(:eye), [:admin, annonce_account]
    = link_to i(:pencil), edit_admin_annonce_account_path(annonce_account), :remote => true if current_admin.super_admin
    
    
    
  