{% extends "theme.html" %}
{% load combo gadjo i18n staticfiles %}

{% block title %}{{ page.title }}{% endblock %}

{% block extra_top_head %}
{% skeleton_extra_placeholder 'extra-top-head' %}
{% endblock %}

{% block extra_css %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "combo.style.css" %}" >
{% skeleton_extra_placeholder 'extra-css' %}
{% endblock %}

{% block messages %}
{% skeleton_extra_placeholder 'messages' %}
{% endblock %}


{% block extra_scripts %}
<script src="{{site_base}}{% xstatic 'jquery' 'jquery.min.js' %}"></script>
<script src="{{site_base}}{% static 'js/combo.public.js' %}"></script>
{% skeleton_extra_placeholder 'extra-scripts' %}
{% endblock %}

{% block bodyargs %}
{% skeleton_extra_placeholder 'bodyargs' %}
{% endblock %}

{% block content_header %}
{% skeleton_extra_placeholder 'content_header' %}
{% endblock %}

{% block menu %}
  {% show_menu %}
{% endblock %}

{% block content %}
  {% placeholder "content" %}
{% endblock %}

{% block js-endpage %}
  {% skeleton_extra_placeholder 'js-endpage' %}
{% 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 %}
{% skeleton_extra_placeholder 'user-info' %}
{% endblock %}
