php_app/app/views/admin/comments/_comment.html.haml
Nicolas Bally 5cf3a3e83d initial
2014-11-25 22:56:20 +01:00

14 lines
626 B
Plaintext

%tr#comment_row.comment_row{:id => comment.id, :class => ("warning" if !comment.enabled)}
%td
-if comment.commentable and comment.commentable_type = "Article"
=link_to comment.commentable.title, public_article_path(:id => comment.commentable.slug, :anchor => "comments")
%td=comment.pseudo
%td=comment.email
%td=comment.website
%td=simple_format comment.comment
%td.actions
= link_to i(:"trash-o"), [:admin, comment], :confirm => 'Voulez-vous vraiment supprimer ce commentaire ?', :method => :delete, :remote => true
= link_to i(:pencil), edit_admin_comment_path(comment), :remote => true