From 281a08172803bf5843f73e3b51f238eda6fc6f0f Mon Sep 17 00:00:00 2001 From: Joy Gao Date: Tue, 8 May 2018 09:28:14 +0200 Subject: [PATCH] [AIRFLOW-2431] Add the navigation bar color parameter for RBAC UI Closes #3326 from jgao54/navbar-color --- airflow/www_rbac/app.py | 1 + airflow/www_rbac/templates/appbuilder/navbar.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/airflow/www_rbac/app.py b/airflow/www_rbac/app.py index 572a7a3b78..85125c6eb0 100644 --- a/airflow/www_rbac/app.py +++ b/airflow/www_rbac/app.py @@ -147,6 +147,7 @@ def create_app(config=None, testing=False, app_name="Airflow"): def jinja_globals(): return { 'hostname': socket.getfqdn(), + 'navbar_color': conf.get('webserver', 'NAVBAR_COLOR'), } @app.teardown_appcontext diff --git a/airflow/www_rbac/templates/appbuilder/navbar.html b/airflow/www_rbac/templates/appbuilder/navbar.html index d2c9e1d60e..e2d8c06290 100644 --- a/airflow/www_rbac/templates/appbuilder/navbar.html +++ b/airflow/www_rbac/templates/appbuilder/navbar.html @@ -18,7 +18,7 @@ {% set menu = appbuilder.menu %} {% set languages = appbuilder.languages %} -