@use crate::templates::profiles::icon; @use crate::{profiles::Profile, submissions::Submission}; @use hyaenidae_toolkit::{templates::link, Link}; @use hyaenidae_toolkit::templates::ago; @use hyaenidae_toolkit::templates::icon as tkicon; @(profile: &Profile, submission: &Submission, dark: bool, 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() })
@if let Some(published) = submission.published() {
posted @:ago(published, dark)
}
@:body()