@use crate::templates::profiles::icon; @use crate::{profiles::Profile, comments::Comment}; @use hyaenidae_toolkit::{templates::link, Link}; @use hyaenidae_toolkit::templates::icon as tkicon; @use hyaenidae_toolkit::templates::ago; @(comment: &Comment, profile: &Profile, dark: bool)
@: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)
@comment.body()