.qi_header
  %h1
    
    %span
      


.qi_row
  .qi_pannel.qi_plain.padding
    %table.table.table-striped.table-hover.table-bordered
      %tr
        %td{:style => "width:200px;"} Nom
        %td
          =@file_tunel.name
          
    
    
    %hr
    Fichiers
    
    -params[:search][:per_page] = params[:search][:per_page] || 50
    -per_page = params[:search][:per_page]
    -page = (params[:page] and params[:page] != "") ? params[:page] : 1 
    -@file_tunel_files = @file_tunel.file_tunel_files
    -@file_tunel_files = sort_by_sorting(@file_tunel_files, "position ASC")
    -@file_tunel_files = @file_tunel_files.page(page).per(per_page)
    
    =render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @file_tunel_files}
    
    %hr
    Liste
    
    -params[:search][:per_page] = params[:search][:per_page] || 50
    -per_page = params[:search][:per_page]
    -page = (params[:page] and params[:page] != "") ? params[:page] : 1 
    -@file_tunel_sends = @file_tunel.file_tunel_sends
    -@file_tunel_sends = sort_by_sorting(@file_tunel_sends, "created_at DESC")
    -@file_tunel_sends = @file_tunel_sends.page(page).per(per_page)
    
    =render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @file_tunel_sends}