Merge pull request #74 from medialab-prado/71-only-show-root-comments

Show only first level comments in comments box for annotations
This commit is contained in:
Fernando Blat
2017-01-18 11:18:35 +01:00
committed by GitHub

View File

@@ -6,7 +6,7 @@
<% end %> <% end %>
</div> </div>
<div class="comments-wrapper"> <div class="comments-wrapper">
<% annotation.comments.each do |comment| %> <% annotation.comments.roots.each do |comment| %>
<div class="comment"> <div class="comment">
<div class="comment-text"> <div class="comment-text">
<p><%= comment.body %></p> <p><%= comment.body %></p>