refactors comment form
This commit is contained in:
committed by
Juanjo Bazán
parent
df5ef2dc29
commit
eb689d7c7e
@@ -88,14 +88,14 @@
|
||||
|
||||
<%= render 'comments/actions', comment: comment %>
|
||||
|
||||
<%= render 'comments/form', {parent: comment, toggeable: true} %>
|
||||
<%= render 'comments/form', {commentable: @debate, parent_id: comment.id, toggeable: true} %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="comment-children">
|
||||
<%= render comment.children.for_render.reorder('id DESC, lft') %>
|
||||
<%= render comment.children.for_render.reorder('id DESC') %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user