{#
returnLink : lien de retour, si absent, logo recovup, renvoit vers "/"
returnLinkTitle : titre du lien de retour
class : liste des classes à appliquer
#}
{% set returnLink = returnLink is not defined ? "" : returnLink %}
{% if "/admin/" in app.request.requestUri %}
{% if class is defined %}
{% set adminClass = " mod-admin" %}
{% else %}
{% set adminClass = "mod-admin" %}
{% endif %}
{% endif %}
<header id="header" class="{{ class is defined ? class : "" }}{{ adminClass is defined ? adminClass : "" }}">
<nav>
<div>
{% if returnLink == "" %}
<a href="/">
<img id="logo" src="/img/logo/recovup.svg" alt="Recov'up">
</a>
{% else %}
{% if
'recommandation' in app.request.pathInfo
and app.request.pathInfo != "/bienEtre/recommandation/"
%}
{% set returnLink = path("bienEtre_recommandation_index") %}
{% set returnLinkTitle = "Recommandation" %}
{% endif %}
<a
href="{{ returnLink }}"
{% if returnLinkTitle is defined %} title="{{ returnLinkTitle }}" {% endif %}>
<img src="/img/icons/v2/Retour.svg" alt="Retour">
</a>
{% endif %}
</div>
<div>
{% if title is not defined %}
{% if is_granted('ROLE_ADMIN') %}
<a href="{{ path('admin_home') }}">
<img src="/img/icons/v2/Admin.svg" alt="Admin">
</a>
{% endif %}
<a href="{{ path('app_account_params_user_account') }}">
<img src="/img/icons/v2/Profil.svg" alt="Profil">
</a>
<a href="/" class="js-notification-activation-btn notification-activation mod-hidden">
<img src="/img/icons/v2/Cloche.svg" alt="Notification">
</a>
<a href="{{ path('warmupLog_index') }}">
<img src="/img/icons/v2/Flamme.svg" alt="Admin">
</a>
{% endif %}
{% if title is defined %}
<h1>{{ title }}</h1>
{% endif %}
</div>
</nav>
</header>