+
+ {% if g.breadcrumb|length > 1 %}
- {% endif %}
+ {% endif %}
-
-
{% include "breadcrumbs.html" %}
-
+
+ {%- include "flash-messages.html" %}
-
+
- {%- include "flash-messages.html" %}
+
-
- {% block header %} {%- endblock header %}
-
-
+
+
+ {% block header %} {%- endblock header %}
+
+
-
-
-
- {%- block footer %}
+ {%- block footer %}
- {%- endblock footer %} {%- endblock body %} {%- assets "js" %}
-
- {%- endassets %} {%- block js %}{%- endblock js %} {# this block should be
+ {%- endblock footer %}
+{%- endblock body %}
+
+{%- assets "js" %}
+
+{%- endassets %}
+
+{%- block js %}{%- endblock js %} {# this block should be
used to load additional libraries #}
-
-
+
+
- {#- i18n bundles #} {%- set js_i18n_bundle = "js-i18n-" + locale.language %}
- {%- if js_i18n_bundle in app.extensions['webassets'] %}
-
- {%- assets js_i18n_bundle %}
+{#- i18n bundles #} {%- set js_i18n_bundle = "js-i18n-" + locale.language %}
+{%- if js_i18n_bundle in app.extensions['webassets'] %}
+
+ {%- assets js_i18n_bundle %}
- {%- endassets %} {%- endif %} {% block locale_js %} {% endblock locale_js %}
- {#- 'abilian_init.js' will load additional libraries by writing new 'script'
+ {%- endassets %}
+{%- endif %}
+
+{% block locale_js %} {% endblock locale_js %}
+{#- 'abilian_init.js' will load additional libraries by writing new 'script'
tags. We put deferred JS and inline_js in a separate script tag so that the
code is executed after thoses libraries have been loaded. #}
-
+ {#- template can also use an 'inline_js' variable #}
+ {%- set inline_js = inline_js|default(None) %}
+ {%- if inline_js %}
+ {{ inline_js }}
+ {%- endif %}
+
- {%- if config.TRACKING_CODE %} {{ config.TRACKING_CODE | safe }} {%- endif
- %}
-
+{%- if config.TRACKING_CODE %} {{ config.TRACKING_CODE | safe }} {%- endif %}
+
- {% block main %}
+
+
+
+
+ {% block main %}
+ {%- endblock main %}
{% block content %} {% endblock content %}
- {%- endblock main %}
-