forked from bofh/fetsite
comments
This commit is contained in:
12
app/views/comments/_comment.html.erb
Normal file
12
app/views/comments/_comment.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<div id="<%= comment.divid %>">
|
||||
<a class="pull-left media-object" href="#"><%= image_tag comment.thumb_url %></a>
|
||||
<div class="media-body">
|
||||
<b><%= comment.user.try(:email) %></b> (<%= I18n.l(comment.created_at) %>): <%= comment.text %>
|
||||
<%= link_to "comment" , new_comment_path( commentable_type: "Comment", commentable_id: comment.id), remote:true %>
|
||||
<%= render partial:"comments/comments", object: comment.children if comment.children.size >0 %>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="<%= Comment.formid_for(comment) %>">
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user