% 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| %> <% comment_ts = comment.created_at %>-
<%=t "projects.reports.elements.step_comments.comment_prefix", user: comment.user.full_name, date: l(comment_ts, format: :full_date), time: l(comment_ts, format: :time) %>
<% end %>
<% end %>