From 9432bd88f5dfa717d66f25d33b96f697b9c7faf4 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Wed, 3 Jan 2024 13:25:52 -0300 Subject: [PATCH] fix: Invalid references in the basic template (#26302) --- superset/templates/superset/basic.html | 183 ++++++++++++++----------- 1 file changed, 100 insertions(+), 83 deletions(-) diff --git a/superset/templates/superset/basic.html b/superset/templates/superset/basic.html index 0a4d24cc058e6..b36b113071842 100644 --- a/superset/templates/superset/basic.html +++ b/superset/templates/superset/basic.html @@ -1,116 +1,133 @@ -{# - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. -#} +{# Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with this work +for additional information regarding copyright ownership. The ASF licenses this +file to you under the Apache License, Version 2.0 (the "License"); you may not +use this file except in compliance with the License. You may obtain a copy of +the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by +applicable law or agreed to in writing, software distributed under the License +is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. #} -{% import 'appbuilder/general/lib.html' as lib %} -{% from 'superset/partials/asset_bundle.html' import css_bundle, js_bundle with context %} - -{% set favicons = appbuilder.app.config['FAVICONS'] %} +{% import 'appbuilder/general/lib.html' as lib %} {% from +'superset/partials/asset_bundle.html' import css_bundle, js_bundle with context +%} {% set favicons = appbuilder.app.config['FAVICONS'] %} - {% block title %} - {% if title %} - {{ title }} - {% elif appbuilder and appbuilder.app_name %} - {{ appbuilder.app_name }} - {% endif %} - {% endblock %} + {% block title %} {% if title %} {{ title }} {% elif appbuilder and + appbuilder.app_name %} {{ appbuilder.app_name }} {% endif %} {% endblock + %} - {% block head_meta %}{% endblock %} - {% block head_css %} - {% for favicon in favicons %} - - {% endfor %} - - - - - - - - - - - {{ css_bundle("theme") }} + {% block head_meta %}{% endblock %} {% block head_css %} {% for favicon in + favicons %} {% + endfor %} + + + + + + + + - {% if entry %} - {{ css_bundle(entry) }} - {% endif %} - - {% endblock %} - - {{ js_bundle("theme") }} + {{ css_bundle("theme") }} {% if entry %} {{ css_bundle(entry) }} {% endif %} + {% endblock %} {{ js_bundle("theme") }} + /> - - {% block navbar %} - {% if not standalone_mode %} - {% include 'appbuilder/navbar.html' %} - {% endif %} - {% endblock %} - - {% block body %} -
- -
+ + {% block navbar %} {% if not standalone_mode %} {% include + 'appbuilder/navbar.html' %} {% endif %} {% endblock %} {% block body %} +
+ +
{% endblock %} -