33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
|
|
.right= link_to 'Ajouter un petition', new_admin_petition_path(), :class => "btn btn-primary"
|
|
|
|
%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|
|
|
-petition_lang = petition.petition_langs[0]
|
|
%tr
|
|
%td= petition_lang.title
|
|
%td
|
|
=link_to petition_lang.lang_site.name, petition_path(:slug => petition_lang.slug, :lang => petition_lang.lang_site.slug), :target => "_blank"
|
|
=#link_to petition_url(:id => petition.petition_langs[0].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(:"trash-o"), [:admin, petition], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cette petition ? Les signatures seront également supprimées.' }
|
|
= link_to i(:pencil), edit_admin_petition_path(petition)
|
|
= link_to i(:info), [:admin, petition]
|
|
|