{% load combo %}

{% if include_top_links != False %}
<div id="toplinks">
{% block user-info %}
{% skeleton_extra_placeholder user-info %}
{% if user.is_authenticated %}
               <a accesskey="o" class="logout" href="{% url 'auth_logout' %}">
                       <div class="logtext">D&eacute;connexion</div>
                       <div class="logicon"></div>
               </a>

               {% if idp_account_url %}
                       <a class="registration picto" href="{{idp_account_url}}">
               {% endif %}

               <span>{{user.first_name}} {{user.last_name}}</span>
               {% if idp_account_url %}
                       </a>
               {% endif %}
       {% else %}
               {% if idp_registration_url %}
                       <a accesskey="2" class="login" href="{% url 'auth_login' %}">
                               <div class="logtext">Connexion</div>
                               <div class="logicon"></div>
                       </a>

                       <a class="registration" href="{{idp_registration_url}}">
                               <span class="pre-register">Pas de compte ?</span>
                               <span class="register">Enregistrez-vous !</span>
                       </a>
               {% else %}
                       <a accesskey="2" class="registration" href="{% url 'auth_login' %}">
                               Connexion <span class="sep">/</span> Inscription
                       </a>
               {% endif %}
       {% endif %}

{% end_skeleton_extra_placeholder %}
{% endblock %}
</div>
{% endif %}
