From d8b57cde777c331864cdfba3121d58522d51c377 Mon Sep 17 00:00:00 2001 From: NguyenND Date: Tue, 28 Apr 2026 15:18:43 -0400 Subject: [PATCH] 04/28 Updated UI 2 --- app.py | 7 +++++-- templates/base.html | 16 +++++++--------- templates/base_authenticated.html | 6 ++++++ 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/app.py b/app.py index ce66588..4c08359 100644 --- a/app.py +++ b/app.py @@ -107,8 +107,11 @@ def create_app() -> Flask: @app.context_processor def inject_company_name(): - """Make COMPANY_NAME available to all templates""" - return {'COMPANY_NAME': os.environ.get('COMPANY_NAME', 'QR Code Management System')} + """Make COMPANY_NAME and THEME_NAME available to all templates""" + return { + 'COMPANY_NAME': os.environ.get('COMPANY_NAME', 'QR Code Management System'), + 'THEME_NAME': os.environ.get('THEME_NAME', ''), + } @app.context_processor def inject_logging_status(): diff --git a/templates/base.html b/templates/base.html index d3f2a37..720c681 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,20 +11,18 @@ href="{{ url_for('static', filename='css/style.css') }}" /> - - {% if THEME_NAME %} - - {% endif %} - + + {% if THEME_NAME %} + + {% endif %} + {% block extra_head %}{% endblock %} @@ -67,7 +65,7 @@