Files
nairobi/app/views/debates/_comments.html.erb
Javi Martín c3e0a6b089 Remove duplication rendering comments
We were using the same code 5 times, with the only slight variation
being the extra heading in the debates section.
2021-06-27 23:22:00 +02:00

7 lines
215 B
Plaintext

<%= render Shared::CommentsComponent.new(@debate, @comment_tree) do %>
<h3>
<%= t("debates.show.comments_title") %>
<span class="js-comments-count">(<%= @debate.comments_count %>)</span>
</h3>
<% end %>