% step ||= report_element.step %> <% comments = step.step_comments.order(created_at: :desc) %> <% export_all = defined?(export_all) && export_all %> <% 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 %>