- if (donator_transaction.tr_payment.tr_payment_type and donator_transaction.tr_payment.tr_payment_type_id != 3) or (donator_transaction.tr_payment.tr_payment_type and donator_transaction.tr_payment.tr_payment_type_id == 3 and donator_transaction.paid == true) 
  %tr
    %td
      =l donator_transaction.created_at, :format => :short_numbers
    %td
      =l donator_transaction.tr_payment.paid_at, :format => :short_numbers if donator_transaction.tr_payment.paid_at?
    %td
      -if donator_transaction.paid
        %strong{:style => "color:green"}
          Oui
    %td
      =donator_transaction.id
  
    
    %td
      =donator_transaction.particular_bill.organisation
    %td
      =donator_transaction.particular_bill.firstname
    %td
      =donator_transaction.particular_bill.name
    %td
      =donator_transaction.particular_bill.address_2
    %td
      =donator_transaction.particular_bill.address_3
    %td
      =donator_transaction.particular_bill.cp
    %td
      =donator_transaction.particular_bill.city
    %td
      =donator_transaction.particular_bill.country
    %td
      =donator_transaction.particular_bill.email
    %td
      =donator_transaction.particular_bill.tel
    %td
      =donator_transaction.tr_payment.tr_payment_type.name if donator_transaction.tr_payment.tr_payment_type
    %td
      =number_to_currency donator_transaction.total
    %td
      -if donator_transaction.recurrent
     
        %strong Mensuel
    
    
    

    -if donator_transaction.transaction_items[0].transaction_content_type == "TransactionDonate"
      %td
        Don
      %td
    -elsif donator_transaction.transaction_items[0].transaction_content_type == "TransactionSponsorship"
      %td
        Parrainage
      %td
        =donator_transaction.transaction_items[0].transaction_content.sponsorship_animal.name
    
    %td
      =#link_to i(:pencil), edit_admin_donator_transaction_path(donator_transaction)
      =#link_to i(:eye), admin_donator_transaction_path(donator_transaction)
      =#link_to i(:"trash-o"), admin_donator_transaction_path(donator_transaction), :method => :delete, :data => {:confirm => "Voulez-vous vraiment supprimer cette fiche donateur ?"}