{% import "Mambo/macros/html.html" as html with context %} {% import "Mambo/macros/nav.html" as nav with context %} {% import "Mambo/macros/forms.html" as forms with context %} {% import "Mambo/macros/widget.html" as widget with context %} {% set wide_view = false %} {% set show_menus = true %} {% set require_auth = false %} {% if __.__AUTH_ENABLED__ and current_user and not current_user.is_authenticated %} {% set wide_view = true %} {% set show_menus = false %} {% set require_auth = true %} {% endif %} {{ html.header("%title% | " + __.APPLICATION_NAME) }} {{ html.favicon("favicon.ico") }} {{ html.global_assets() }} {{ html.fontawesome() }} {{ html.bootswatch_theme(__.MAMBO_ADMIN_THEME) }} {{ html.css_asset("mambo-admin.css") }} {{ html.js_asset("mambo-admin.js") }} {{ nav.top_nav(brand=__.MAMBO_ADMIN_BRAND, url="/") }}
{{ widget.flashed_messages() }}
{% if require_auth and "AuthLogin:" in request.endpoint %}
{% include __template__ %}
{% else %} {% if not wide_view %}


{% endif %}
{% if wide_view %}
{% include __template__ %}
{% else %}

{{ nav.current_title() }} {{ nav.current_sub_title("/") }}

{% include __template__ %}
{% endif %} {% endif %}