adds comments to debates [#7]

This commit is contained in:
rgarcia
2015-07-18 17:38:57 +02:00
parent 05705f3174
commit 98463e4930
5 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
<div id="comment-<%= comment.id %>" class='comment' style="padding-bottom:30px">
<p><%= comment.user.name %></p>
<p>hace <%= time_ago_in_words(comment.created_at) %></p>
<p><%= comment.body %></p>
<div style="margin-left:50px">
<%= render comment.children %>
</div>
<div style="margin-left:50px">
<%= render 'comments/form', parent: comment %>
</div>
</div>