Skip to content

Commit a5a227f

Browse files
jogecodesaquemy
authored andcommitted
fix: template {{ file_name }} error in HTML wrapper (#1380)
* Update javascript.html * Update style.html
1 parent 98b63ff commit a5a227f

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/ydata_profiling/report/presentation/flavours/html/templates/wrapper/javascript.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
{% include 'wrapper/assets/script.js' %}
99
</script>
1010
{% else %}
11-
<script src="{{ file_name }}_assets/js/jquery-1.12.4.min.js"></script>
12-
<script src="{{ file_name }}_assets/js/bootstrap.min.js"></script>
13-
<script src="{{ file_name }}_assets/js/script.js"></script>
11+
<script src="{{ assets_prefix }}/js/jquery-1.12.4.min.js"></script>
12+
<script src="{{ assets_prefix }}/js/bootstrap.min.js"></script>
13+
<script src="{{ assets_prefix }}/js/script.js"></script>
1414
{% endif %}
1515
{% else %}
1616
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
1717
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
1818
<script>
1919
{% include 'wrapper/assets/script.js' %}
2020
</script>
21-
{% endif %}
21+
{% endif %}

src/ydata_profiling/report/presentation/flavours/html/templates/wrapper/style.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
{% else %}
2020
{% if theme is not none %}
2121
{% if theme.value == 'flatly' %}
22-
<link href="{{ file_name }}_assets/css/flatly.bootstrap.min.css" rel="stylesheet" />
22+
<link href="{{ assets_prefix }}/css/flatly.bootstrap.min.css" rel="stylesheet" />
2323
{% elif theme.value == 'united' %}
24-
<link href="{{ file_name }}_assets/css/united.bootstrap.min.css" rel="stylesheet" />
24+
<link href="{{ assets_prefix }}/css/united.bootstrap.min.css" rel="stylesheet" />
2525
{% elif theme.value == 'simplex' %}
26-
<link href="{{ file_name }}_assets/css/simplex.bootstrap.min.css" rel="stylesheet" />
26+
<link href="{{ assets_prefix }}/css/simplex.bootstrap.min.css" rel="stylesheet" />
2727
{% elif theme.value == 'cosmo' %}
28-
<link href="{{ file_name }}_assets/css/cosmo.bootstrap.min.css" rel="stylesheet" />
28+
<link href="{{ assets_prefix }}/css/cosmo.bootstrap.min.css" rel="stylesheet" />
2929
{% endif %}
3030
{% else %}
31-
<link rel="stylesheet" href="{{ file_name }}_assets/css/bootstrap.min.css" />
32-
<link rel="stylesheet" href="{{ file_name }}_assets/css/bootstrap-theme.min.css" />
31+
<link rel="stylesheet" href="{{ assets_prefix }}/css/bootstrap.min.css" />
32+
<link rel="stylesheet" href="{{ assets_prefix }}/css/bootstrap-theme.min.css" />
3333
{% endif %}
3434
{% endif %}
3535
{% else %}
@@ -52,5 +52,5 @@
5252
{%- if inline -%}
5353
<style>{% include 'wrapper/assets/style.css' %}</style>
5454
{% else %}
55-
<link rel="stylesheet" href="{{ file_name }}_assets/css/style.css" />
56-
{% endif %}
55+
<link rel="stylesheet" href="{{ assets_prefix }}/css/style.css" />
56+
{% endif %}

0 commit comments

Comments
 (0)