From 833a094cea0d18d385fa5e0bfb475af796a47d19 Mon Sep 17 00:00:00 2001 From: "NG (Graham)" Date: Thu, 25 Jun 2026 19:26:11 -0400 Subject: [PATCH] Use factory URL from config in garage list webpage --- assets/templates/rc_society/garage_list.html.hbs | 2 +- rc_society/src/web/garage/list.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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