diff --git a/assets/templates/rc_society/garage_list.html.hbs b/assets/templates/rc_society/garage_list.html.hbs index ae5c844..72a6cba 100644 --- a/assets/templates/rc_society/garage_list.html.hbs +++ b/assets/templates/rc_society/garage_list.html.hbs @@ -63,7 +63,7 @@
- +
Factory
diff --git a/rc_society/src/web/garage/list.rs b/rc_society/src/web/garage/list.rs index 5fea689..e8be7b2 100644 --- a/rc_society/src/web/garage/list.rs +++ b/rc_society/src/web/garage/list.rs @@ -10,6 +10,7 @@ const FORM_NAME: &str = "garage_list"; struct RenderData { display_name: String, public_id: String, + factory: String, garages: Vec, } @@ -25,7 +26,7 @@ struct GarageData { } #[get("/garages/list")] -pub async fn get(handlebars_ref: Data>, auth: Data>, user_opt: Option, req: HttpRequest) -> Result { +pub async fn get(handlebars_ref: Data>, auth: Data>, server_config: Data, user_opt: Option, req: HttpRequest) -> Result { match try_auth_user(user_opt, auth.as_ref(), &req).await? { LoginReturn::AuthFail(resp) => Ok(resp), LoginReturn::Success(user) => { @@ -36,6 +37,7 @@ pub async fn get(handlebars_ref: Data>, auth: Data>, auth: Data