diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html
index 20d38f0bf..6a5d1a2c4 100644
--- a/extensions/odoo_theme/layout.html
+++ b/extensions/odoo_theme/layout.html
@@ -1,19 +1,19 @@
-{% extends "basic/layout.html" %}
-{% set html5_doctype = True %}
+{%- extends "basic/layout.html" %}
+{%- set html5_doctype = True %}
-{% block css %}
+{%- block css %}
{{ super() }}
- {% if 'custom-css' in meta %}{# Allow custom css style import for specific pages #}
- {% set css_files = meta['custom-css'].split(',') %}
- {% for css_file in css_files %}
- {% set link = '_static/css/' + css_file %}
+ {%- if 'custom-css' in meta %}{# Allow custom css style import for specific pages #}
+ {%- set css_files = meta['custom-css'].split(',') %}
+ {%- for css_file in css_files %}
+ {%- set link = '_static/css/' + css_file %}
- {% endfor %}
- {% endif %}
-{% endblock %}
+ {%- endfor %}
+ {%- endif %}
+{%- endblock %}
-{% block scripts %}
- {% if 'custom-js' in meta %}{# Allow custom js import for specific pages #}
+{%- block scripts %}
+ {%- if 'custom-js' in meta %}{# Allow custom js import for specific pages #}
{# Before the custom files using React & Immutable (accounting mementos) #}
- {% set js_files = meta['custom-js'].split(',') %}
- {% for js_file in js_files %}
- {% set link = '_static/js/' + js_file %}
+ {%- set js_files = meta['custom-js'].split(',') %}
+ {%- for js_file in js_files %}
+ {%- set link = '_static/js/' + js_file %}
- {% endfor %}
- {% endif %}
+ {%- endfor %}
+ {%- endif %}
{{ super() }} {# Load the scripts specified in the extensions/themes #}
-{% endblock %}
+{%- endblock %}
-{% block linktags %}
- {% for alternate_language, language_code, url in alternate_languages %}
+{%- block linktags %}
+ {%- for alternate_language, language_code, url in alternate_languages %}
{%- endfor %}
{{ super() }}
-{% endblock %}
+{%- endblock %}
{#
Google analytics key logic.
We do not want to call super here since our custom footer logic is defined in the content block.
#}
-{% block footer %}
+{%- block footer %}
{%- if google_analytics_key -%}
- {% include "layout_templates/google_analytics.html" %}
+ {%- include "layout_templates/google_analytics.html" %}
{%- endif -%}
-{% endblock %}
+{%- endblock %}
-{% block header %}
+{%- block header %}
{# shown when js has properly set all the classes on the toc elements #}