better layout
This commit is contained in:
@ -32,11 +32,6 @@ async fn index(
|
||||
context.insert("trip_types", &triptypes);
|
||||
}
|
||||
|
||||
if user.has_role(db, "scheckbuch").await {
|
||||
let last_trips = Logbook::completed_with_user(db, &user).await;
|
||||
context.insert("last_trips", &last_trips);
|
||||
}
|
||||
|
||||
let days = user.get_days(db).await;
|
||||
|
||||
if let Some(msg) = flash {
|
||||
@ -46,7 +41,6 @@ async fn index(
|
||||
context.insert("fee", &user.fee(db).await);
|
||||
context.insert("loggedin_user", &UserWithDetails::from_user(user, db).await);
|
||||
context.insert("days", &days);
|
||||
context.insert("costs_scheckbuch", &SCHECKBUCH);
|
||||
Template::render("planned", context.into_json())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user