idn_app/app/views/public/comments/_comment.html.haml
Nicolas Bally b5690bc6f2 initial
2016-07-25 15:55:11 +02:00

28 lines
869 B
Plaintext

.comment#comment{:class => ("author" if comment.email == "info@nicolasbally.com"), :id => comment.id}
%aside=#gravatar_image_tag(comment.email? ? comment.email : comment.pseudo, :gravatar => {:default => "http://#{HOSTNAME}/assets/front/default_avatar.jpg"})
%p.header
Commentaire de
%strong
=comment.pseudo
%time.updated{:datetime => Time.now, :pubdate => true}
envoyé
="le "+l(comment.created_at, :format => :human_date)
=link_to ic(:share), new_public_comment_path(:commentable_id => comment.commentable_id, :commentable_type =>comment.commentable_type, :parent_id => comment.id), :remote => true, :class => "add_comment"
%blockquote=simple_format comment.comment
.child_comments
=render comment.children.where(:enabled => true).order(:created_at)
.child_form_place