@use crate::ActixLoader; @use crate::comments::{Cache, CommentNode}; @use crate::templates::comments::{nodes, profile_box}; @use hyaenidae_toolkit::templates::bbcode; @use hyaenidae_toolkit::templates::link; @use hyaenidae_toolkit::templates::{nested_children, nested_node}; @use i18n_embed_fl::fl; @(loader: &ActixLoader, node: &CommentNode, cache: &Cache, parent: &CommentNode, logged_in: bool, dark: bool) @if let Some(comment) = node.comment(cache) { @:nested_node({ @:profile_box(loader, &node.author(cache), comment.published(), parent, cache, dark, { }, { @:bbcode({ @Html(comment.body()) }) }) }) } @if node.has_children() { @:nested_children({ @for child in &node.children { @:nodes(loader, child, cache, node, logged_in, dark) } }) }