-if m_odr_file.m_odr_file_type_id == 1
  -m_odr_file.m_odr_file_roulages.each do |m_odr_file_roulage|
    %tr#m_odr_file_row{:id => m_odr_file.id}
  
      %td
        =l m_odr_file_roulage.date, :format => :date if m_odr_file_roulage.date

      %td
        =link_to ic(:download)+" Télécharger le document", download_admin_m_odr_file_path(m_odr_file, :disposition => "attachment")
    
  
      %td.state
        -if m_odr_file.admin_ok
          =state_helper("Validé")
        -elsif m_odr_file.admin_ok == false
          =state_helper("Refusé")
        -else
          =state_helper("En cours de vérification")

-else
  %tr#m_odr_file_row{:id => m_odr_file.id}

    %td
      =l m_odr_file.buy_at, :format => :date if m_odr_file.buy_at

    %td
      =link_to ic(:download)+" Télécharger le document", download_admin_m_odr_file_path(m_odr_file, :disposition => "attachment")
  

    %td.state
      -if m_odr_file.admin_ok
        =state_helper("Validé")
      -elsif m_odr_file.admin_ok == false
        =state_helper("Refusé")
      -else
        =state_helper("En cours de vérification")