* Add details to toggles and modify some styling * Add details to child comments * Finalize comment collapse in nested comments * Modify styling on comment <details>
12 lines
No EOL
593 B
Text
12 lines
No EOL
593 B
Text
<% if comment && comment.user %>
|
|
<% if comment.depth < 3 %>
|
|
<details open>
|
|
<summary><span> </span></summary>
|
|
<%= render("comments/comment_proper", comment: comment, commentable: commentable,
|
|
is_view_root: is_view_root, is_childless: is_childless, subtree_html: subtree_html) %>
|
|
</details>
|
|
<% else %>
|
|
<%= render("comments/comment_proper", comment: comment, commentable: commentable,
|
|
is_view_root: is_view_root, is_childless: is_childless, subtree_html: subtree_html) %>
|
|
<% end %>
|
|
<% end %> |