.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