{% extends "authentic2/base.html" %}
{% load i18n authentic2 %}

{% block placeholder-content %}
<div class="a2-block">
  {% block content %}
  {% endblock %}
</div>
{% endblock %}

{% block user-info %}
  {% if user.is_authenticated %}
    <div id="toplinks">
      <span>
        <a class="logout" href="{% url 'auth_logout' %}">{% trans "Logout" %}</a>
        {% if is_eservice_admin %}
        <a class="restricted" href="{{ wcs_url }}admin/">Administration</a>
        {% elif is_eservice_backoffice_user %}
        <a class="restricted" href="{{ wcs_url }}backoffice/">Back office</a>
        {% endif %}
      </span>
    </div>
    <div id="username">{{ user.first_name }} {{ user.last_name }}</div>
  {% endif %}
{% endblock %}

{% block js-endpage %}
{% renderblock "js-endpage" %}
{% endblock %}
