{% extends 'base.html.twig' %}
{% block title %}HOME PAGE{% endblock %}
{% block body %}
{% for flashError in app.flashes('verify_email_error') %}
<div class="alert alert-danger" role="alert">{{ flashError }}</div>
{% endfor %}
<h1>Home Page</h1>
{% if is_granted('IS_ANONYMOUS') %}
<a href="{{ path('app_login') }}">LOGIN</a>
{% else %}
<a href="{{ path('app_user_home') }}">Espace Utilisateur</a>
<a href="{{ path('app_logout') }}">Logout</a>
{% endif %}
<ul>
{% for service in services %}
<li>{{ service.name }}</li>
{% endfor %}
</ul>
{% endblock %}