% if result.blank? and @result.present? then result = @result end %> <% if order.blank? and @order.present? then order = @order end %> <% comments = result.result_comments.order(created_at: order) %> <% timestamp = Time.current + 1.year %>
<% comments.each do |comment| %> <%= render partial: 'shared/comments/item.html.erb', locals: { comment: comment, readonly: true, report: true } %> <% end %>
<% end %>