%tr#mail_hist_row{:id => mail_hist.id}
  -tr = {}

  -tr[:mail_type] = capture do
    %td
      =mail_hist.mail_type.slug if mail_hist.mail_type
      
  -tr[:p_customer] = capture do
    %td
      =link_to mail_hist.p_customer.show_name, [:admin, mail_hist.p_customer] if mail_hist.p_customer

  -tr[:actions] = capture do
    %td.actions
      = link_to i(:"trash-o"), [:admin, mail_hist], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
      = link_to i(:pencil), edit_admin_mail_hist_path(mail_hist), :remote => true
      = link_to i(:eye), admin_mail_hist_path(mail_hist), :remote => false

  
  
  
  =render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => mail_hist}