@use crate::templates::profiles::icon; @use crate::{profiles::Profile, submissions::Submission}; @use hyaenidae_toolkit::{templates::link, Link}; @(profile: &Profile, submission: &Submission, dark: bool)
@: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 }) } else {   }
@:link(&Link::current_tab(&profile.view_path()).plain(true).dark(dark), { @profile.full_handle() })
@if let Some(published) = submission.published() {
posted @:link(&Link::current_tab("#").title(&crate::time(published)).plain(true).dark(dark), { @crate::published_time(published) })
}