scinote-web/app/views/shared/comments/_comments_list.html.erb
2022-08-09 14:15:49 +02:00

7 lines
284 B
Text

<% user= nil %>
<% comments.each do |comment| %>
<%= render partial: 'shared/comments/comment.html.erb',
locals: { comment: comment, skip_header: user == comment.user } %>
<% user = comment.user %>
<% end %>
<% comments.mark_as_seen_by(current_user, @commentable) %>