% if result.blank? and @result.present? then result = @result end %> <% if order.blank? and @order.present? then order = @order end %> <% comments = result.result_comments.order(created_at: order) %> <% timestamp = Time.current + 1.year %>
<% comments.each do |comment| %> <% comment_ts = comment.created_at %>-
<%=t "projects.reports.elements.result_comments.comment_prefix", user: comment.user.full_name, date: l(comment_ts, format: :full_date), time: l(comment_ts, format: :time) %>
<% end %>
<% end %>