%tr
  %td{:style => "width:120px"}
    = l commission.created_at, :format => :date
  %td
    =link_to commission.annonce_account.pseudo_admin, admin_annonce_account_path(commission.annonce_account)
  %td
    -if commission.order
      =#image_tag(commission.order.annonce_account.avatar_url) 
      =link_to commission.order.annonce_account.pseudo_admin, admin_annonce_account_path(commission.order.annonce_account)
  %td
    -if commission.commission_type_id == 1
      Commission directe
    -elsif commission.commission_type_id == 2
      =ic :sitemap
      Commission binaire
    -elsif commission.commission_type_id == 3
      Commission de participation
    -elsif commission.commission_type_id == 4
      Virement vers votre compte
      =commission.virement.annonce_account_rib.iban+", "
      
      référence du virement :
      =commission.virement.token.upcase
    -elsif commission.commission_type_id == 5
      Utilisation du solde pour commande de crédits


  %td{:style => "text-align:right", :class => (commission.commission_type_id == 4 ? "red" : "green")}
    =commission.commission_type_id == 4 ? "" : "+ "
    =number_to_currency commission.amount