34 lines
821 B
Plaintext

.links
= link_to 'Ajouter un groupe', new_admin_newsgroup_path, :class => "lien" if has_permission?('adherent.add')
%h1 Liste des groupes
%table.table.table-striped
%thead
%tr
%th Nom du groupe
%th{:style=>"width:100px;"}
%tbody
-@newsgroups.each do |newsgroup|
%tr
%td=h newsgroup.name
%td.link-column
=link_to(i(:"trash-o"), [:admin, newsgroup], :confirm => 'Êtes-vous sure de supprimer le groupe ?', :method => :delete, :class => "lien") if has_permission?('adherent.delete')
=link_to( i(:pencil), edit_admin_newsgroup_path(newsgroup)) if has_permission?('adherent.edit')
=link_to( i(:info), admin_newsgroup_path(newsgroup)) if has_permission?('adherent.edit')
%br