show header in kiosk mode
This commit is contained in:
@ -90,7 +90,7 @@ async fn show(db: &State<SqlitePool>, user: User) -> Template {
|
||||
async fn show_kiosk(db: &State<SqlitePool>, _kiosk: KioskCookie) -> Template {
|
||||
let logs = Logbook::completed(db).await;
|
||||
|
||||
Template::render("log.completed", context!(logs))
|
||||
Template::render("log.completed", context!(logs, show_kiosk_header: true))
|
||||
}
|
||||
|
||||
#[get("/kiosk/ekrv2019/<loc>")]
|
||||
@ -148,6 +148,7 @@ async fn kiosk(
|
||||
context.insert("logtypes", &logtypes);
|
||||
context.insert("on_water", &on_water);
|
||||
context.insert("distances", &distances);
|
||||
context.insert("show_kiosk_header", &true);
|
||||
|
||||
Template::render("kiosk", context.into_json())
|
||||
}
|
||||
|
Reference in New Issue
Block a user