@use crate::templates::profiles::icon; @use crate::{profiles::Profile, comments::{Comment, ItemWithAuthor}}; @use hyaenidae_toolkit::{templates::link, Link}; @(profile: &Profile, comment: &Comment, replying_to: &ItemWithAuthor, dark: bool, meta: Content, body: Content)
@:link(&Link::current_tab(&profile.view_path()).dark(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 @:link(&Link::current_tab("#").title(&crate::time(comment.published())).plain(true).dark(dark), { @crate::published_time(comment.published()) })
@:meta()
@:link(&replying_to.link(dark), { Replying to @replying_to.name() })
@:body()