56 lines
1.7 KiB
Plaintext
56 lines
1.7 KiB
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 => "https://#{HOSTNAME}/assets/front/default_avatar.jpg"})
|
|
|
|
|
|
-if !@new_site
|
|
%p.header
|
|
|
|
=qit "comment-from", "Commentaire de"
|
|
%strong
|
|
=comment.pseudo
|
|
|
|
%time.updated{:datetime => Time.now, :pubdate => true}
|
|
=qit "comment-envoyé","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
|
|
-else
|
|
%p.header
|
|
%strong
|
|
=comment.pseudo
|
|
%span.sep
|
|
="|"
|
|
=l(comment.created_at, :format => :human_date)
|
|
-if current_admin and current_admin.moderateur
|
|
%span.sep
|
|
="|"
|
|
=link_to "Modérer", edit_admin_comment_path(comment)
|
|
|
|
|
|
|
|
%blockquote
|
|
=simple_format comment.comment
|
|
.links
|
|
=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"
|
|
|
|
.child_comments
|
|
.child_form_place
|
|
=render comment.children.where(:enabled => true).order(:created_at)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|