hyaenidae/server/templates/admin/reporter.rs.html
asonix 934ddd76ff Server: Update to latest Toolkit & Profile apis
Reorganize files a bit
Add a Pagination trait to guide with paging in the future
Add extension traits for Profile, Comment, and Submission
Async-ify more things, but not all things
2021-01-21 23:47:47 -06:00

15 lines
424 B
HTML

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