0001-templates-don-t-load-__services.js-in-front-anymore-.patch
templates/combo/page_template.html | ||
---|---|---|
52 | 52 |
{% endblock %} |
53 | 53 | |
54 | 54 |
{% block extra_scripts %} |
55 |
{% if portal_agent_url and portal_agent_title %} |
|
56 |
<script> |
|
57 |
const PUBLIK_PORTAL_AGENT_URL = "{{portal_agent_url|escapejs}}"; |
|
58 |
const PUBLIK_PORTAL_AGENT_TITLE = "{{portal_agent_title|escapejs}}"; |
|
59 |
</script> |
|
60 |
{% endif %} |
|
55 | 61 |
<script src="{{site_base}}{% static 'js/combo.public.js' %}?{% start_timestamp %}" async></script> |
56 | 62 |
<script src="{{site_base}}{% static 'js/combo.back.js' %}?{% start_timestamp %}" async></script> |
57 |
<script src="{{site_base}}/__services.js"></script> |
|
58 | 63 |
{% if not no_extra_js %} |
59 | 64 |
<script src="{{site_base}}{% static "" %}{{css_variant}}/extra.js?{% start_timestamp %}" async></script> |
60 | 65 |
{% endif %} |
templates/variants/hautes-alpes-2018/combo/page_template_neutre.html | ||
---|---|---|
9 | 9 |
{% endblock %} |
10 | 10 | |
11 | 11 |
{% block extra_scripts %} |
12 |
{% if portal_agent_url and portal_agent_title %} |
|
13 |
<script> |
|
14 |
const PUBLIK_PORTAL_AGENT_URL = "{{portal_agent_url|escapejs}}"; |
|
15 |
const PUBLIK_PORTAL_AGENT_TITLE = "{{portal_agent_title|escapejs}}"; |
|
16 |
</script> |
|
17 |
{% endif %} |
|
12 | 18 |
<script src="{{site_base}}{% static 'js/combo.public.js' %}?{% start_timestamp %}"></script> |
13 | 19 |
<script src="{{site_base}}{% static 'js/combo.back.js' %}?{% start_timestamp %}"></script> |
14 |
<script src="{{site_base}}/__services.js"></script> |
|
15 | 20 |
{% if not no_extra_js %} |
16 | 21 |
<script src="{{site_base}}{% static "" %}{{css_variant}}/extra.js?{% start_timestamp %}"></script> |
17 | 22 |
{% endif %} |
18 |
- |