scinote-web/app/views/shared/comments/_comments_list.html.erb
2023-06-21 14:38:32 +02:00

7 lines
275 B
Text

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