{% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} {% import 'components/common.html' as component with context %} {{ script.include('common', '') }} {# common.js is, as its name state, a common script, so it's useful to import it here #} {{ script.include('dom_update') }} {# will check page for dom element to modify when javascript is enabled #} {% if norobots %} {% endif %} {% block title %}{{C.APP_NAME}}{% endblock %} {% if css_content is defined %} {% if css_content_noscript is defined %} {% endif %} {% else %} {% for css_file in css_files %} {% endfor %} {% if css_files_noscript %} {% endif %} {% endif %} {% if links is defined %} {% for link_data in links %} {% endfor %} {% endif %} {% if xmpp_uri is defined %} {% endif %} {% if dynamic_style is defined %} {# be extra careful about dynamic style, insure escaping if you use untrusted values ! #} {% endif %} {# JS handling #} {% if websocket is defined %} {{ script.include('websocket', '') }} {% endif %} {# FIXME: following ugly hack is temporarily needed for dom_update, until a proper way to handle gettext dynamicly is implemented #} {{ script.generate_scripts() }} {% if websocket is defined %} {% endif %} {% block favicon %} {% endblock favicon %} {% if main_menu %} {% block main_menu %} {% call component.menu(main_menu, class="main_menu") %} {% endcall %} {% endblock main_menu %} {% endif %}
{% if confirm %} {# confirmation message used when post data has been handled correctly #} {% block confirm %}
{% block confirm_message %} {% trans %}Your data has been sent correctly.{% endtrans %} {% endblock confirm_message %}
{% endblock confirm %} {% endif %} {% if notifications %} {% block notifications %} {% for notification in notifications %}
{{ notification.message }}
{% endfor %} {% endblock notifications %} {% endif %}
{% block category_menu scoped %} {% if category_menu is defined %} {{ component.menu(category_menu, class="category_menu") }} {% endif %} {% endblock category_menu %} {% block body %} {% endblock body %}