Merge pull request #346 from AyuntamientoMadrid/ancestry

Ancestry
This commit is contained in:
Enrique García
2015-09-03 17:19:08 +02:00
20 changed files with 106 additions and 116 deletions

View File

@@ -82,7 +82,7 @@
<span>(<%= @debate.comments_count %>)</span>
</h2>
<% if user_signed_in? %>
<%= render 'comments/form', {parent: @debate, toggeable: false} %>
<%= render 'comments/form', {commentable: @debate, parent_id: nil, toggeable: false} %>
<% else %>
<br>
<div class="alert-box radius info">
@@ -92,8 +92,8 @@
</div>
<% end %>
<%= render @comments %>
<%= paginate @comments %>
<%= render @root_comments %>
<%= paginate @root_comments %>
</div>
</div>
</section>