diff --git a/app/routers/dashboard.py b/app/routers/dashboard.py index 0214ee3..5529d27 100644 --- a/app/routers/dashboard.py +++ b/app/routers/dashboard.py @@ -76,13 +76,14 @@ def _sidebar_data(request: Request, repos: list[dict], include_workspace: bool = if include_workspace and ws_cookie and ws_cookie.startswith("gitea:"): # Gitea workspace: set owner/repo for client-side tree loading + # BUT keep local workspace pages — they go in the "Private" section parts = ws_cookie.split(":", 2) if len(parts) >= 3: gitea_owner = parts[1] gitea_repo = parts[2] active_ws_name = f"{gitea_owner}/{gitea_repo}" gitea_workspace = True - workspace_pages = [] # loaded client-side + # workspace_pages stays as-is (local tree, loaded above) elif include_workspace and ws_cookie and user: try: wsi = int(ws_cookie) diff --git a/app/templates/base.html b/app/templates/base.html index cc1cb4d..12b05ec 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -116,12 +116,12 @@