hyaenidae/server/templates/profiles/report.rs.html
asonix 5f0682ee22 Make mobile nav not require page refresh when JS enabled
Make top bar stick to top of screen
Make wide view show rows of 4
Improve notification page styles, text
Add button js to more pages
2021-01-15 22:50:15 -06:00

32 lines
1.3 KiB
HTML

@use crate::templates::button_js;
@use crate::{templates::{layouts::home, profiles::view}, nav::NavState, profiles::ReportView};
@use hyaenidae_toolkit::{templates::button_group, Button};
@use hyaenidae_toolkit::{templates::{card, card_body, card_title}, Card};
@use hyaenidae_toolkit::templates::text_input;
@(rview: &ReportView, nav_state: &NavState)
@:home("Report Profile", rview.profile.description().unwrap_or(&format!("Report {}'s profile on Hyaenidae", rview.profile.name())), nav_state, {
@:button_js()
}, {
@:card(Card::full_width().dark(nav_state.dark()), { @:view(&rview.profile, nav_state.dark()) })
@:card(Card::full_width().dark(nav_state.dark()), {
<form method="POST" action="@rview.profile.report_path()">
@:card_title({ Report Profile })
@:card_body({
<p>
Please include any relevant information for moderators to act on this report.
</p>
@:text_input(&rview.input)
})
@:card_body({
@:button_group(&[
Button::primary("Report").dark(nav_state.dark()),
Button::secondary("Back to Profile").href(&rview.profile.view_path()).dark(nav_state.dark()),
])
})
</form>
})
})