@use crate::extensions::ProfileExt; @use crate::views::OwnedProfileView; @use hyaenidae_profiles::store::Comment; @use hyaenidae_toolkit::templates::bbcode; @use hyaenidae_toolkit::{templates::link, Link}; @use hyaenidae_toolkit::templates::icon; @use hyaenidae_toolkit::templates::ago; @(comment: &Comment, view: &OwnedProfileView, dark: bool)
@:icon(&view.icon().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() })
posted @:ago(comment.published())
@:bbcode({ @Html(comment.body()) })