{% extends "base_raw.html" %}
{% load i18n %}
{% load docbow %}

{% block rawcontent %}
<div class="container_12">
<div id="header">
	{% block header %}
	<h1><div class="logo"></div><div class="title">{% trans "site_title" %}</div></h1>
	<p id="top-infos">
	{% if user.delegate %}
	  {{ user.delegate.get_full_name }} (délégation de {{ user.get_full_name }}){% else %}
	  {{ user.get_full_name }}{% endif %}<br/>
    {% if logout_url %}
      <a href="{{ logout_url }}?next=/">{% trans "Logout" %}</a>
    {% endif %}
	</p>
	{% endblock %}
</div>

{% if messages %}
<ul class="messages">
    {% for message in messages %}
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
    {% endfor %}
</ul>
<script type="text/javascript">
$('.messages').delay(3000*(1+{{ messages|length }})).fadeOut('slow');
</script>
{% endif %}

<div class="clear"></div>
<div id="left-column" class="grid_3">
	{% block left-column %}
	<h3 id="welcome"></h3>
	{% menu %}
	{% endblock %}
</div>
<div id="main-column" class="grid_9">
{% block main-column %}{% endblock %}
</div>

  <div class="clear"/>
</div>

<div class="container_12" id="footer">
  <div class="prefix_4 grid_4">
    Copyright © 2014 Entr'ouvert - Licence AGPLv3
  </div>
  <div class="clear"/>
</div>
{% endblock %}
