clean ui for logbook

This commit is contained in:
2023-07-26 12:56:19 +02:00
parent 97703403a8
commit 48eb1b7dc2
6 changed files with 141 additions and 126 deletions

View File

@ -26,6 +26,7 @@ async fn index(
let coxes = User::cox(db).await;
let users = User::all(db).await;
let logtypes = LogType::all(db).await;
let distances = Logbook::distances(db).await;
let on_water = Logbook::on_water(db).await;
let completed = Logbook::completed(db).await;
@ -42,6 +43,7 @@ async fn index(
context.insert("loggedin_user", &adminuser.user);
context.insert("on_water", &on_water);
context.insert("completed", &completed);
context.insert("distances", &distances);
Template::render("log", context.into_json())
}