@use crate::ActixLoader; @use crate::comments::{CommentNode, Cache}; @use crate::extensions::ProfileExt; @use crate::templates::ago; @use crate::views::OwnedProfileView; @use chrono::{DateTime, Utc}; @use hyaenidae_toolkit::{templates::link, Link}; @use hyaenidae_toolkit::{templates::icon, Size}; @use i18n_embed_fl::fl; @(loader: &ActixLoader, view: &OwnedProfileView, published: Option>, parent: &CommentNode, cache: &Cache, dark: bool, meta: Content, body: Content)
@:icon(&view.icon(loader).size(Size::Small).dark(dark))
@if let Some(name) = view.profile.display_name() {
@:link(&Link::current_tab(&view.profile.view_path()).plain(true), { @Html(name) })
}
@:link(&Link::current_tab(&view.profile.view_path()).plain(true), { @view.profile.full_handle() })
@if let Some(date) = published {
@:ago(loader, date)
}
@if let Some(l) = parent.view_link(cache) { @if let Some(name) = parent.name(cache) { @:link(&l, { @Html(fl!(loader, "replying-to", profileName = name)) }) } }
@:meta()
@:body()