From 43487f17e7bf720aa1c27ff95877b11148365d76 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Sat, 9 May 2026 06:24:27 -0400 Subject: [PATCH] feat: optional logo on Gitea OAuth login button Reads oauth.gitea.logo from config and, when set, renders an inside the button with flex alignment. Co-Authored-By: Claude Sonnet 4.6 --- hbd/server/http.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hbd/server/http.py b/hbd/server/http.py index 3d88bee..b534ee7 100644 --- a/hbd/server/http.py +++ b/hbd/server/http.py @@ -627,10 +627,12 @@ async def start( gitea_button = "" if oauth_mod.is_enabled(config): + logo_url = config.get("oauth", {}).get("gitea", {}).get("logo", "") + logo_img = f'' if logo_url else "" gitea_button = f"""
or
- Sign in with Gitea + {logo_img}Sign in with Gitea """ html = f""" @@ -639,7 +641,7 @@ async def start( Heartbeat — Login