mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
7 lines
284 B
Text
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) %>
|