@use crate::extensions::ProfileExt; @use crate::views::OwnedProfileView; @use chrono::{DateTime, Utc}; @use hyaenidae_toolkit::{templates::link, Link}; @use hyaenidae_toolkit::templates::ago; @use hyaenidae_toolkit::templates::icon; @(view: &OwnedProfileView, published: Option>, dark: bool, body: Content)
@:icon(&view.icon().small(true).dark(dark))
@if let Some(name) = view.profile.display_name() {
@:link(&Link::current_tab(&view.profile.view_path()).plain(true), { @name })
}
@:link(&Link::current_tab(&view.profile.view_path()).plain(true), { @view.profile.full_handle() })
@if let Some(published) = published {
posted @:ago(published)
}
@:body()