= link_to i(:plus)+' Ajouter une petition', new_admin_petition_path, :class => "btn"
%h1 Liste des petitions en ligne

%table.stat_table.table.table-striped
  %tr
    %th Nom
    %th Url
    %th Nbr sign.
    %th
    


  - @petitions.each do |petition| 
    %tr
      %td= petition.name
      %td=link_to petition_url(:id => petition.slug),petition_url(:id => petition.slug)
     
      %td
        =petition.confirmed_signators_number
        ="("+(petition.signators_number-petition.confirmed_signators_number).to_s+" en attente)" if petition.signators_number-petition.confirmed_signators_number > 0
      %td
        = link_to i(:"eye-open"), [:admin, petition]
        = link_to i(:pencil), edit_admin_petition_path(petition)
        = link_to i(:trash), [:admin, petition], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cette petition ? Les signatures seront également supprimées.' } 
    
