@use crate::admin::{Report, ReportsView}; @use crate::extensions::ProfileExt; @use hyaenidae_toolkit::{templates::link, Link}; @(view: &ReportsView, report: &Report, dark: bool, body: Content)
@if let Some(author) = view.reporter_profile(report) { @:link(&Link::new_tab(&author.view_path()).plain(true).dark(dark), { @author.name() }) } @:body()