{%- set locale = get_locale() -%} {%- block page_title %}{{ config.SITE_NAME }}{% endblock page_title -%} {%- assets "css" %} {%- endassets %} {%- block css %}{%- endblock css %} {% block ie_support %} {%- endblock ie_support %} {%- assets "js-top" %} {%- endassets %} {%- set sentry_url = config.get("SENTRY_SDK_URL") %} {%- set sentry_dsn = config.get("SENTRY_DSN") %} {%- if sentry_url and sentry_dsn %} {%- endif %} {%- block top_js %}{%- endblock top_js %} {%- block body %} {#- accessibility link: see http://getbootstrap.com/getting-started/#accessibility #} {{ _("Skip to content") }} {% include "navbar.html" %}
{% if g.breadcrumb|length > 1 %}
{% include "breadcrumbs.html" %}
{% endif %}
{%- include "flash-messages.html" %}
{% block header %} {%- endblock header %}
{% block main %}
{% block content %} {% endblock content %}
{%- endblock main %}
{%- block footer %} {%- 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 %} {%- 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. #} {%- if config.TRACKING_CODE %} {{ config.TRACKING_CODE | safe }} {%- endif %}