diff --git a/superset/templates/head_custom_extra.html b/superset/templates/head_custom_extra.html new file mode 100644 index 0000000000000..591bbfc4fd016 --- /dev/null +++ b/superset/templates/head_custom_extra.html @@ -0,0 +1,24 @@ +{# + 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. +#} + +{# + This file may be overridden in your custom deployment. + It will be included in the head block in every view in superset and is a + good place to include your custom link, meta, style or script elements. +#} diff --git a/superset/templates/superset/base.html b/superset/templates/superset/base.html index b226d3aedd3ef..4a8110f8c1205 100644 --- a/superset/templates/superset/base.html +++ b/superset/templates/superset/base.html @@ -35,6 +35,7 @@ {% block head_js %} {{ super() }} + {% include "head_custom_extra.html" %} {{ js_bundle("theme") }} {% endblock %} diff --git a/superset/templates/superset/basic.html b/superset/templates/superset/basic.html index ddd446fadc293..b97ecb338cfa4 100644 --- a/superset/templates/superset/basic.html +++ b/superset/templates/superset/basic.html @@ -15,6 +15,7 @@ %} {% set favicons = appbuilder.app.config['FAVICONS'] %} + {% include "head_custom_extra.html" %} {% block title %} {% if title %} {{ title }} {% elif appbuilder and appbuilder.app_name %} {{ appbuilder.app_name }} {% endif %} {% endblock