feat: HTML wrap-up page with Askama template

This commit is contained in:
2026-06-02 22:28:28 +02:00
parent c0b3fb6940
commit f00a2cbbb8
5 changed files with 392 additions and 3 deletions

View File

@@ -425,3 +425,16 @@ pub enum ImportRowStatus {
Duplicate,
Invalid(String),
}
#[derive(Template)]
#[template(path = "wrapup.html")]
pub struct WrapUpPageTemplate<'a> {
pub ctx: &'a HtmlPageContext,
pub report: &'a domain::models::wrapup::WrapUpReport,
pub year_label: String,
pub watch_time_display: String,
pub rating_max: u32,
pub genre_max: u32,
pub rating_pcts: [f64; 5],
pub genre_pcts: Vec<f64>,
}