<% result ||= report_element.result %> <% comments = result.result_comments.order(created_at: :desc) %> <% export_all = defined?(export_all) && export_all %> <% if comments.present? %>
<%= t('projects.reports.elements.result_comments.name', result: result.name) %>
    <% comments.each do |comment| %> <%= render partial: 'reports/elements/comment_element', locals: { comment: comment, export_all: export_all } %> <% end %>
<% if defined?(children) %>
<%= children %>
<% end %>
<% end %>