From 46486f82d9352cd7d340e4dfb6bd9ba2676b2c6c Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 18 Apr 2017 16:03:32 -0700 Subject: [PATCH] Moving the warning message to the navbar (#2640) At Airbnb we use these WARNING_MSG configuration element to make it clear that we're in the staging environment. Before this PR it would render under the navbar and mess up some of the heights configurations, where you wouldn't be able to scroll all the way to the bottom of the page. This fixes it. --- superset/templates/appbuilder/navbar.html | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/superset/templates/appbuilder/navbar.html b/superset/templates/appbuilder/navbar.html index 5772cc6481..b5c3d0a074 100644 --- a/superset/templates/appbuilder/navbar.html +++ b/superset/templates/appbuilder/navbar.html @@ -1,5 +1,6 @@ {% set menu = appbuilder.menu %} {% set languages = appbuilder.languages %} +{% set WARNING_MSG = appbuilder.app.config.get('WARNING_MSG') %} -{% set WARNING_MSG = appbuilder.app.config.get('WARNING_MSG') %} -{% if WARNING_MSG %} -
- -
-{% endif %}