@use crate::comments::{CommentNode, ItemWithAuthor}; @use crate::templates::comments::{nodes, profile_box}; @use hyaenidae_toolkit::templates::link; @(node: &CommentNode, replying_to: &ItemWithAuthor, logged_in: bool, dark: bool) @if let Some((comment, author)) = node.item.comment() {
@:profile_box(author, comment, replying_to, dark, { }, {
@comment.body()
})
@if node.has_children() {
@for child in &node.children { @:nodes(child, &node.item, logged_in, dark) }
}
} else { @if node.has_children() {
@for child in &node.children { @:nodes(child, &node.item, logged_in, dark) }
} }