% if step.blank? and @step.present? then step = @step end %> <% if order.blank? and @order.present? then order = @order end %> <% comments = step.step_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 %>