{% extends "gadjo/base.html" %}
{% load qommon %}

{% block page-title %}{{ page_title }}{% endblock %}
{% block site-title %}{{ site_name }}{% endblock %}
{% block footer %}w.c.s. — Copyright © Entr'ouvert{% endblock %}

{% block gadjo-js %}
{{script|safe}}
{% endblock %}

{% block gadjo-css %}
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/qommon.css?{% version_hash %}"/>
{{ block.super }}
{% block css %}{% endblock %}
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/dc2/admin.css?{% version_hash %}"/>
{% endblock %}

{% block bodyargs %}{% if admin_for_all %}class="admin-for-all"{% endif %}{% endblock %}

{% block logout-url %}{{ publisher.get_root_url }}logout{% endblock %}

{% block site-header %}
  <h1 class="breadcrumbs">{% if breadcrumb %}{{ breadcrumb|safe }}{% endif %}</h1>
{% endblock %}

{% block breadcrumb %}
{% endblock %}

{% block sidepage %}
<div id="sidepage">
  <span id="applabel">{{app_label}}</span>
  {{ header_menu|safe }}
</div>
{% endblock %}

{% block main-content %}
{{ body|safe }}
{% endblock %}

{% block sidebar %}
{% if sidebar %}
<aside id="sidebar">
  <span id="sidebar-toggle">&#8286;</span>
  <div id="sticky-sidebar">
    {{ sidebar|safe }}
  </div>
</aside>
{% endif %}
{% endblock %}
