@use plume_models::comments::CommentTree; @use crate::template_utils::*; @use crate::routes::*; @(ctx: BaseContext, comment_tree: &CommentTree, in_reply_to: Option<&str>, blog: &str, slug: &str) @if let Some(ref comm) = Some(&comment_tree.comment) { @if let Ok(author) = comm.get_author(ctx.0) {
@avatar(ctx.0, &author, Size::Small, true, ctx.1) @author.name() @author.fqn

@if let Some(ref ap_url) = comm.ap_url { @comm.creation_date.format("%B %e, %Y %H:%M") }

@if let Some(ref in_reply_to) = in_reply_to { }
@if comm.sensitive {
@comm.spoiler_text } @Html(&comm.content) @if comm.sensitive {
}
@i18n!(ctx.1, "Respond") @if ctx.2.clone().map(|u| u.id == author.id).unwrap_or(false) {
}
@for res in &comment_tree.responses { @:comment_html(ctx, res, comm.ap_url.as_deref(), blog, slug) }
}}