scinote-web/app/views/shared/comments/_comments_list.html.erb

8 lines
292 B
Text
Raw Normal View History

2022-05-25 21:04:14 +08:00
<% user= nil %>
2020-11-20 19:29:40 +08:00
<% comments.each do |comment| %>
<%= render partial: 'shared/comments/comment.html.erb',
2022-05-25 21:04:14 +08:00
locals: { comment: comment, skip_header: user == comment.user } %>
<% user = comment.user %>
2020-11-20 19:29:40 +08:00
<% end %>
<% comments.mark_as_seen_by(current_user) && @commentable.touch %>