hyaenidae/server/templates/admin/reporter.rs.html
asonix 3f446a0b16 Add Admin page
- Add commandline flag to promote a user to an admin
- Add basic reporting feature
  - Enable reports for comments
  - TODO: Enable reports for submissions & profiles
2021-01-13 22:46:34 -06:00

14 lines
387 B
HTML

@use crate::admin::{Report, ReportsView};
@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>