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

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

{% block title %}{{ site_title }}{% endblock %}

{% block extra_top_head %}
{% skeleton_extra_placeholder extra-top-head %}
{% end_skeleton_extra_placeholder %}
{% 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-head %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

{% block bodyattrs %}
data-api-root="{{ site_base }}/api/"
{% if check_badges %}data-check-badges="true"{% endif %}
{% skeleton_extra_placeholder extra-body-args %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

{% block bodyclasses %}
page-{{ page.slug }} {% if pages %}section-{{pages.0.slug}}{% endif %}
{% skeleton_extra_placeholder extra-body-class %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

{% block menu %}
{% show_menu %}
{% placeholder "menu_right" %}
{% endblock %}

{% block messages %}
{{ block.super }}
{% placeholder "messages" %}
{% endblock %}

{% block content %}
  <ol class="box-breadcrumb breadcrumb">
    {% for one_page in pages %}
      {% if not forloop.last %}
      <li><a href="{{one_page.get_online_url}}">{{one_page.title}}</a></li>
      {% else %}
      <li class="active">{{one_page.title}}</li>
      {% endif %}
    {% endfor %}
  </ol>
  {% block combo-content %}
    {% block page-content %}
      {% trans "Content" as name %}
      {% placeholder "content" name=name %}
    {% endblock %}
  {% endblock %}
{% endblock %}

{% block footer %}
  {% trans "Footer" as name %}
  {% placeholder "footer" name=name %}
{% endblock %}

{% block user-name %}
{% if user.is_authenticated %}{{user.get_full_name}}{% else %}Compte Citoyen{% endif %}
{% endblock %}

{% block user-info %}
          {% if user.is_authenticated %}
          <span class="logged-in">
            <span class="connected-user">{{user.first_name}} {{user.last_name}}</span>
            <a class="logout" href="{% url 'auth_logout' %}">D&eacute;connexion</a>
          </span>
          {% endif %}
{% skeleton_extra_placeholder user-info %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

{% block left-menu-links %}
    {% if request.user.is_authenticated %}
				    <li><a href="{{ idp_url }}accounts/">Mon compte</a></li>
				    <li><a href="{{ portal_url }}demarches-en-cours/">Mes démarches en cours</a></li>
				    <li><a href="{{ portal_url }}">Démarches en ligne</a></li>
				    <li><a href="{% url 'auth_logout' %}">Déconnexion</a></li>
	{% else %}
				    <li><a href="{{ portal_url }}login/">Connexion</a></li>
				    <li><a href="{{ idp_url }}accounts/register/">Créer un compte</a></li>
				    <li><a href="{{ portal_url }}">Démarches en ligne</a></li>
				    <li><a href="{{ portal_url }}aide/">Aide</a></li>
	{% endif %}
{% endblock %}
