<% if step.blank? and @step.present? then step = @step end %> <% comments = step.step_comments.order(created_at: :desc) %> <% timestamp = Time.current + 1.year %> <% for_export_all = defined?(export_all) && export_all %>
" data-icon-class="fas fa-comment">
<%=t "projects.reports.elements.step_comments.name", step: step.name %>
<%= render partial: "reports/elements/element_controls.html.erb", locals: { show_sort: true } %>
<% if comments.any? %>
    <% comments.each do |comment| %> <%= render partial: 'shared/comments/item.html.erb', locals: { comment: comment, readonly: true, report: true, export_all: for_export_all } %> <% end %>
<% else %> <%=t "projects.reports.elements.step_comments.no_comments" %> <% end %>
<%= children if (defined? children and children.present?) %>