From 80ec33a380d65650e501c806af196bf2b68cb1b3 Mon Sep 17 00:00:00 2001 From: A R R R Associates Date: Fri, 10 Jul 2026 11:52:42 +0530 Subject: [PATCH] Fix optional firm branding in shared navigation layout --- app/ui/templates/base/layout.html | 28 ++++++++++--------- .../components/top_workspace_bar.html | 4 +-- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/app/ui/templates/base/layout.html b/app/ui/templates/base/layout.html index fa74283..c685ea1 100644 --- a/app/ui/templates/base/layout.html +++ b/app/ui/templates/base/layout.html @@ -4,22 +4,22 @@ {% set __title_user = current_user if current_user is defined else None %} - {% set __firm_branding = get_current_firm_branding(request, __title_user) %} - + {% set __firm_branding = get_current_firm_branding(request, __title_user)|default(none, true) %} + - {% if __firm_branding.favicon_url %}{% endif %} + {% if __firm_branding and (__firm_branding.favicon_url|default("", true)) %}{% endif %} {% set __title_auth = __title_user and request.session.get("otp_verified", False) %} {% if __title_auth %} {% set __title_firm = get_current_tenant_name(request, __title_user) %} {% set __title_branch = get_current_branch_name(request, __title_user) %} {{ title or "Workspace" }} | {{ __title_firm }}{% if __title_branch and __title_branch != "-" %} - {{ __title_branch }}{% endif %} {% else %} - {{ title or "Welcome" }} | {{ __firm_branding.firm_name or "Audit Firm ERP" }} + {{ title or "Welcome" }} | {{ (__firm_branding.firm_name|default("", true)) if __firm_branding else "Audit Firm ERP" }} {% endif %}