asonix
934ddd76ff
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
19 lines
700 B
HTML
19 lines
700 B
HTML
@use crate::extensions::ProfileExt;
|
|
@use crate::profiles::ReportView;
|
|
@use crate::nav::NavState;
|
|
@use crate::templates::layouts::home;
|
|
@use hyaenidae_toolkit::{templates::button_group, Button};
|
|
@use hyaenidae_toolkit::{templates::{card, card_title, card_body}, Card};
|
|
|
|
@(view: &ReportView, nav_state: &NavState)
|
|
|
|
@:home("Profile Reported", &format!("Reported {}", view.profile.name()), nav_state, {}, {
|
|
@:card(&Card::full_width().dark(nav_state.dark()), {
|
|
@:card_title({ Profile Reported })
|
|
@:card_body({
|
|
@:button_group(&[
|
|
Button::secondary("Back to Profile").href(&view.profile.view_path()).dark(nav_state.dark()),
|
|
])
|
|
})
|
|
})
|
|
})
|