feat: provide support for an overridable template to be included in every view (#12315)
This commit is contained in:
parent
a30064b2e8
commit
cbda599406
|
|
@ -34,4 +34,5 @@
|
|||
{{ super() }}
|
||||
{{ js_bundle("preamble") }}
|
||||
{{ js_bundle('menu') }}
|
||||
{% include "tail_js_custom_extra.html" %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@
|
|||
{% if entry %}
|
||||
{{ js_bundle(entry) }}
|
||||
{% endif %}
|
||||
{% include "tail_js_custom_extra.html" %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -23,4 +23,5 @@
|
|||
|
||||
{% block tail_js %}
|
||||
{{ js_bundle("crudViews") }}
|
||||
{% include "tail_js_custom_extra.html" %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
{#
|
||||
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 overriden in your custom deployment.
|
||||
It will be included in every view in superset and is a
|
||||
good place to include your custom frontend code, such as
|
||||
scripts to initialize google analytics, intercom, segment, etc.
|
||||
#}
|
||||
Loading…
Reference in New Issue