Skip to content

Commit 529adeb

Browse files
fix(templates): Restores templates files accidentally removed (#35094)
1 parent eb4351a commit 529adeb

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{#
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
#}
19+
20+
{#
21+
This file may be overridden in your custom deployment.
22+
It will be included in every view in superset and is a
23+
good place to include your custom frontend code, such as
24+
scripts to initialize google analytics, intercom, segment, etc.
25+
#}

superset/templates/superset/spa.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
id="csrf_token"
6565
value="{{ csrf_token() if csrf_token else '' }}"
6666
/>
67+
{% block head_js %}
68+
{% include "head_custom_extra.html" %}
69+
{% endblock %}
6770
</head>
6871

6972
<body {% if standalone_mode %}class="standalone"{% endif %}>
@@ -98,6 +101,7 @@
98101
{% if entry %}
99102
{{ js_bundle(assets_prefix, entry) }}
100103
{% endif %}
104+
{% include "tail_js_custom_extra.html" %}
101105
{% endblock %}
102106

103107
<script nonce="{{ macros.get_nonce() }}">
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{#
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
#}
19+
20+
{#
21+
This file may be overridden in your custom deployment.
22+
It will be included in every view in superset and is a
23+
good place to include your custom frontend code, such as
24+
scripts to initialize google analytics, intercom, segment, etc.
25+
#}

0 commit comments

Comments
 (0)