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

{% block user-info %}
{% skeleton_extra_placeholder user-info %}
          {% if user.is_authenticated %}
          <span class="logged-in">
            {% if idp_account_url %}<a href="{{idp_account_url}}">{% endif %}
            <span class="connected-user">{{user.first_name}} {{user.last_name}}</span>{% if idp_account_url %}</a>{% endif %}
            <a accesskey="o" class="logout" href="{% url 'auth_logout' %}">D&eacute;connexion</a>
          </span>
          {% else %}
            {% if idp_registration_url %}
            <span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Connexion</a>
              {% if wallonie_connect == 'usagers' %}
              <a class="registration" href="{{idp_registration_url}}">Inscription</a></span>
	      {% endif %}
            {% else %}
	    <span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Connexion{% if wallonie_connect == 'usagers' %}   Inscription{% endif %}</a></span>
            {% endif %}
          {% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}


{% block header-title %}
{% if logo == True %}
<h1 id="logo">
  <a accesskey="1" href="{% firstof logo_link_url portal_url '/' %}">
    <img src="{{ portal_url }}static/{{ commune_slug }}/images/logo.png" alt="Logo E-guichet (démarches en ligne) de la commune de {{ commune_name }}" title="Lien vers l'accueil du E-guichet (démarches en ligne) de la commune de {{ commune_name }}"/>
    </a>
</h1>
{% else %}
{{ block.super }}
{% endif %}
{% endblock %}
