@use crate::comments::{CommentNode, Cache}; @use crate::extensions::ProfileExt; @use crate::views::OwnedProfileView; @use chrono::{DateTime, Utc}; @use hyaenidae_toolkit::{templates::link, Link}; @use hyaenidae_toolkit::templates::icon; @use hyaenidae_toolkit::templates::ago; @(view: &OwnedProfileView, published: DateTime, parent: &CommentNode, cache: &Cache, dark: bool, meta: Content, body: Content)
@:icon(&view.icon().small(true).dark(dark))
@if let Some(name) = view.profile.display_name() {
@:link(&Link::current_tab(&view.profile.view_path()).plain(true), { @name })
}
@:link(&Link::current_tab(&view.profile.view_path()).plain(true), { @view.profile.full_handle() })
posted @:ago(published)
@if let Some(l) = parent.view_link(cache) { @if let Some(name) = parent.name(cache) { @:link(&l, { Replying to @name }) } }
@:meta()
@:body()