.qi_header
  .right

    = link_to 'Ajouter un tunnel de dons', new_admin_don_tunnel_path(), :class => "btn btn-primary"
  %h1 
    Pétitions
    
.qi_row
  .qi_pannel.qi_plain.padding
    %table.stat_table.table.table-striped
      %tr
        %th Nom
        %th Url
        %th 
        %th
    


      - @don_tunnels.each do |don_tunnel| 
        
        %tr
          %td= don_tunnel.title
          %td
            =link_to new_public_don_tunnels_path(:slug => don_tunnel.slug, :lang => "fr"), new_public_don_tunnels_path(:slug => don_tunnel.slug, :lang => "fr"), :target => "_blank" if don_tunnel.slug?

        
          %td

          %td.actions{:style => "width:150px;"}
            = link_to i(:"trash-o"), [:admin, don_tunnel], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cette don_tunnel ? Les signatures seront également supprimées.' } 
            = link_to i(:pencil), edit_admin_don_tunnel_path(don_tunnel)
            = link_to i(:info), [:admin, don_tunnel]
            = #link_to i(:"bar-chart"), stats_admin_don_tunnel_path(don_tunnel)
    
