{% extends "combo/page_template.html" %}
{% load combo %}

{% block user-info %}
{% skeleton_extra_placeholder user-info %}
{% if user.is_authenticated %}

<span class="logged-in">
  Bonjour
  <span class="connected-user">{{user.first_name}} {{user.last_name}}</span>
  {% if idp_account_url %}
  <a class="account" href="{{idp_account_url}}" title="Accéder à mon compte"></a>
  {% endif %}
  <a class="logout" href="{% url 'auth_logout' %}" title="Se déconnecter"></a>
</span>

{% else %}

{% if idp_registration_url %}
<span class="login">
  <a accesskey="2" href="{% url 'auth_login' %}">Connexion</a>
  <span class="sep">/</span>
  <a class="registration" href="{{idp_registration_url}}">Inscription</a>
</span>
{% else %}
<span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Connexion <span class="sep">/</span> Inscription</a></span>
{% endif %}

{% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
