{% if app.user is defined and app.user.currentSeason is defined and app.user.currentSeason is not null %}
{% set troupe = app.user.currentSeason.brand %}
{% else %}
{% set troupe = 'defaut' %}
{% endif %}
{% set title = 'troupe' %}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>{% block title %}{{ title }}{% endblock %} | Asso planner</title>
{% include("Components/favicon.html.twig") %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('build/css/app.css') }}" type="text/css"/>
{% endblock %}
{% block javascripts %}
<script src="{{ asset('build/js/app.js') }}"></script>
{% block jsspecifique %}{% endblock %}
{% endblock %}
</head>
<body class="{% block body_class %}page-view menu--white{% endblock %}{% if app.user %} logged{% endif %}">
<header class="{% if app.user %}logged{% endif %}">
{% block header %}
{% include 'Components/header.html.twig' with global_layout.header %}
{# {{ render(controller('App\\Controller\\HomePageController::header')) }} #}
{% endblock %}
{% block page_title %}{% endblock %}
</header>
<div class="container-fluid" id="main-content">
{#FIXME: app.flashes insted of app.session.flashbag #}
{% if app.session.flashbag | length > 0 %}
<div class="alert-wrapper">
{% for label, messages in app.session.flashbag.all %}
{% if messages | length > 0 %}
<div class="grid-container">
<div data-alert class="alert-box {{ label }}">
{% for message in messages %}
<p>
{% if label == 'error' or label == 'warning' %}<i class="icon icon-warning"></i>{% endif %}
{% if label == 'success' %}<i class="icon icon-check"></i>{% endif %}
{{ message| trans }}
</p>
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% block body %}{% endblock %}
</div>
{% block footer %}
{{ include("Components/footer.html.twig") }}
{% endblock %}
{% include 'Components/cookie-bar.html.twig' %}
{% block jsspecifiquefooter %}{% endblock %}
</body>
</html>