From 4b04b93f50f8e90aaa13288a40173b30ff38efcc Mon Sep 17 00:00:00 2001 From: Amaia Castro Date: Tue, 17 Jan 2017 17:40:04 +0100 Subject: [PATCH] Show only first level comments in comments box for annotations --- app/views/legislation/annotations/_comments_box.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/legislation/annotations/_comments_box.html.erb b/app/views/legislation/annotations/_comments_box.html.erb index caea782af..24e87b141 100644 --- a/app/views/legislation/annotations/_comments_box.html.erb +++ b/app/views/legislation/annotations/_comments_box.html.erb @@ -6,7 +6,7 @@ <% end %>
- <% annotation.comments.each do |comment| %> + <% annotation.comments.roots.each do |comment| %>

<%= comment.body %>