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