{% extends "includes/user-info.html" %}

{% block user-info %}
  <span class="theme-back-home">
    <a href="{{portal_url}}" title="retour à l’accueil">Accueil</a>
  </span>

  {% skeleton_extra_placeholder user-info %}
  {% if user.is_authenticated %}
  <span class="logged-in">
    {% if account_url %}<a class="account-link" href="{{ account_url }}">{% endif %}
    <span class="connected-user">{% block user-info-user-name %}{{user.first_name}} {{user.last_name}}{% endblock %}</span>{% if account_url %}</a>{% endif %}
    <a accesskey="o" class="logout" href="{{ logout_url }}">{% block user-info-logout-label %}Déconnexion{% endblock %}</a>
  </span>
  {% else %}
  <span class="login"><a accesskey="2" class="login-link" href="{{ login_url }}"
    >{% block user-info-login-label %}Connexion{% endblock %}
    {% if registration_url and include_registration_link != False %}</a>{% endif %}
    <span class="sep">/</span>
    {% if registration_url and include_registration_link != False %}<a class="registration" href="{{registration_url}}"
    >{% block user-info-registration-label %}Inscription{% endblock %}{% endif %}</a></span>
  {% endif %}
  {% end_skeleton_extra_placeholder %}

{% endblock %}
