Compare commits
No commits in common. "29e714288361a10f16ecf073fbd16e670ef197a3" and "1f44b73b3b50c047bb3ac16135f4258e1a25a6ac" have entirely different histories.
29e7142883
...
1f44b73b3b
@ -24,7 +24,7 @@ pub mod triptype;
|
||||
pub mod user;
|
||||
pub mod usertrip;
|
||||
|
||||
#[derive(Serialize, Debug)]
|
||||
#[derive(Serialize)]
|
||||
pub struct Day {
|
||||
day: NaiveDate,
|
||||
planned_events: Vec<PlannedEventWithUserAndTriptype>,
|
||||
|
@ -25,7 +25,7 @@ pub struct Trip {
|
||||
is_locked: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Debug)]
|
||||
#[derive(Serialize)]
|
||||
pub struct TripWithUserAndType {
|
||||
#[serde(flatten)]
|
||||
pub trip: Trip,
|
||||
|
@ -57,6 +57,7 @@ async fn index(db: &State<SqlitePool>, user: User, flash: Option<FlashMessage<'_
|
||||
if let Some(msg) = flash {
|
||||
context.insert("flash", &msg.into_inner());
|
||||
}
|
||||
println!("{user:#?}");
|
||||
context.insert("loggedin_user", &UserWithRoles::from_user(user, db).await);
|
||||
context.insert("days", &days);
|
||||
Template::render("index", context.into_json())
|
||||
|
Loading…
Reference in New Issue
Block a user