<% 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 %>
" data-icon-class="glyphicon glyphicon-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.count == 0 %> <%=t "projects.reports.elements.step_comments.no_comments" %> <% else %>
    <% 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) %>   <%= custom_auto_link(comment.message) %>
  • <% end %>
<% end %>
<%= children if (defined? children and children.present?) %>