show header in kiosk mode

This commit is contained in:
2023-10-23 21:05:59 +02:00
parent 4cb374e246
commit 6f9edfa23f
4 changed files with 11 additions and 3 deletions

View File

@ -26,7 +26,7 @@ async fn index_kiosk(db: &State<SqlitePool>, _kiosk: KioskCookie) -> Template {
let stat = Stat::get_rowed_km(db).await;
let kiosk = true;
Template::render("stat", context!(stat, kiosk))
Template::render("stat", context!(stat, kiosk, show_kiosk_header: true))
}
pub fn routes() -> Vec<Route> {