fix deleted comments not being hidden

This commit is contained in:
Kyle Drake 2017-07-12 09:16:40 -07:00
parent de669d86cb
commit bd45dfdab6
2 changed files with 12 additions and 4 deletions

View file

@ -140,10 +140,10 @@
<%== erb :'_news_actions', layout: false, locals: {event: event} %>
<% end %>
<% if event.comments_dataset.count > 0 %>
<% if event.undeleted_comments_count > 0 %>
<div class="content">
<div class="comments">
<% event.comments.each do |comment| %>
<% event.undeleted_comments.each do |comment| %>
<% comment_actioning_site = comment.actioning_site_dataset.select(:id, :title, :domain, :username, :stripe_customer_id, :plan_type).first %>
<% comment_event_site = comment.event.site_dataset.select(:id, :title, :domain, :username, :stripe_customer_id, :plan_type).first %>
<div class="comment" id="comment_<%= comment.id %>">