.qi_header
  %h1
    Primes
    %span
      Factures
    %span 
      Détail d'une
      =@m_odr_file.m_odr_file_type.name
      


.qi_row
  .qi_pannel.qi_plain.padding
    
    =link_to ic(:download)+" Télécharger le document", download_admin_m_odr_file_path(@m_odr_file, :disposition => "attachment")
    
    
    -if File.extname(@m_odr_file.file.path) == ".pdf" || File.extname(@m_odr_file.file.path) == ".PDF"
      
      %iframe{:src => @m_odr_file.file.url, :style => "width:100%;height:800px;border:1px solid gray;"}
    
    -else
      &nbsp;&nbsp;
      =link_to ic(:"rotate-left"), rotate_admin_m_odr_file_path(:id => @m_odr_file.id, :direction => "right"), :remote => true
      &nbsp;&nbsp;
      =link_to ic(:"rotate-right"), rotate_admin_m_odr_file_path(@m_odr_file), :remote => true
      #image_previ{:style => "width:100%;height:800px;border:1px solid gray;overflow:auto;"}
        =render :partial => "admin/m_odr_files/image", :locals => {:file => @m_odr_file}
    
    