intra_app/app/views/admin/comments/index.html.haml
Nicolas Bally 761e075bb6 initial
2018-11-08 21:47:30 +01:00

29 lines
745 B
Plaintext

.qi_header
%h1 Liste des commentaires
.qi_row
.qi_pannel.qi_plain.padding
.header
-if params[:moderated] and params[:moderated].to_i == 1
%h2 Déjà modérés
%p
=link_to "Voir les commentaires pas encore modérés", params.merge( {:moderated => 0})
-else
%h2 Pas encore activés
%p
=link_to "Voir les commentaires acceptés", params.merge( {:moderated => 1})
%table#comments.table
%tr
%th{:style => "width:150px;"} Article
%th{:style => "width:200px;"} Nom
%th{:style => "width:200px;"} Email
%th Commentaire
%th{:style => "width:150px;"}
=render @comments
.qi_pagination
= paginate @comments