@use crate::templates::profiles::icon; @use crate::{profiles::Profile, comments::{Comment, ItemWithAuthor}}; @use hyaenidae_toolkit::{templates::link, Link}; @use hyaenidae_toolkit::templates::icon as tkicon; @use hyaenidae_toolkit::templates::ago; @(profile: &Profile, comment: &Comment, replying_to: &ItemWithAuthor, dark: bool, meta: Content, body: Content)
@:tkicon(&profile.view_path(), true, dark, { @if let Some(key) = profile.icon_key() { @:icon(key, &profile.name()) } })
@if let Some(name) = profile.display_name() {
@:link(&Link::current_tab(&profile.view_path()).plain(true).dark(dark), { @name })
}
@:link(&Link::current_tab(&profile.view_path()).plain(true).dark(dark), { @profile.full_handle() })
posted @:ago(comment.published(), dark)
@:link(&replying_to.link(dark), { Replying to @replying_to.name() })
@:meta()
@:body()