{% set scriptName = App.Request.getScriptName|split('/')|last %}
{# HEAD (but when we load show.html from searchpage we don't want it #}
{%- include 'head.html' -%}
{# TITLE #}
{%- block title -%}
{# this can be overridden by child templates #}
{{ pageTitle|default('eLabFTW') }}
{%- endblock -%}
{# INFO BOX (FLASH MESSAGES) #}
{# https://symfony.com/doc/current/session.html#flash-messages #}
{%- for label, messages in App.Session.getFlashBag().all() -%}
{%- for message in messages %}
{{ message|msg(label) }}
{%- endfor -%}
{%- endfor -%}
{# ANNOUNCEMENTS #}
{# general sysconfig announcement #}
{%- if App.Config.configArr.announcement -%}
{{ App.Config.configArr.announcement|msg('warning', false) }}
{%- endif -%}
{# team level announcement #}
{%- if App.teamArr.announcement -%}
{{ App.teamArr.announcement|msg('warning', false) }}
{%- endif -%}
{# BODY #}
{# target for skip link #}
{% block body %}{% endblock %}
{# TODOLIST / FAVTAGS side panels (only for logged in users) #}
{% if App.Session.get('is_auth') and not App.Session.get('is_anon') %}
{% include 'todolist-panel.html' %}
{% include 'favtags-panel.html' %}
{% endif %}
{# FOOTER #}
{% include 'footer.html' %}