{% extends base_template %}
{% load i18n %}

{% block title %}{{ block.super }} » {{ project.name }}{% for p in doc.parents %} » {{ p.title|striptags|safe }}{% endfor %} » {{ doc.title|striptags|safe }}{% endblock %}

{% block content %}
<div class="pagination-top">
    <div class="breadcrumbs">
		» <a href="{{ project.get_absolute_url }}">
            {% blocktrans with project_name=project.name %}{{ project_name }} documentation{% endblocktrans %}</a>
    {% for p in doc.parents %}
    	» <a href="{{ p.link }}">{{ p.title|safe }}</a>
    {% endfor %}
    	» {{ doc.title|safe }}
	</div>
    {% if doc.prev or doc.next %}
    <span class="alignleft">
        {% if doc.prev %}
          {% trans "Prev:" %} <a href="{{ doc.prev.link }}">{{ doc.prev.title|safe }}</a>
        {% endif %}</span>
	<span class="alignright">
        {% if doc.next %}
          {% trans "Next:" %} <a href="{{ doc.next.link }}">{{ doc.next.title|safe }}</a>
        {% endif %}</span><div class="clearboth">.</div>
    {% endif %}
</div>

<div class="sphinx">
    {% block doc_body %}
    {{ doc.body|safe }}    
    {% endblock %}
</div>

<div class="pagination-bottom">
    {% if doc.prev or doc.next %}
    <span class="alignleft">
        {% if doc.prev %}
          {% trans "Prev:" %} <a href="{{ doc.prev.link }}">{{ doc.prev.title|safe }}</a>
        {% endif %}</span>
	<span class="alignright">
        {% if doc.next %}
          {% trans "Next:" %} <a href="{{ doc.next.link }}">{{ doc.next.title|safe }}</a>
        {% endif %}</span><div class="clearboth">.</div>
    {% endif %}
	<div class="breadcrumbs">
        » <a href="{{ project.get_absolute_url }}">{% blocktrans with project_name=project.name %}{{ project_name }} documentation{% endblocktrans %}</a>
    {% for p in doc.parents %}
    	» <a href="{{ p.link }}">{{ p.title|safe }}</a>
    {% endfor %}
    	» {{ doc.title|safe }}
	</div>
	<div class="meta">
        {% trans "Last update:" %} {{ update_date|date:"SHORT_DATETIME_FORMAT" }} (<a href="http://www.timeanddate.com/worldclock/city.html?n=37">CET</a>)
	</div>
</div>
{% endblock content %}

{% block sidebar %}
    {% block doc_toc %}
<div class="box">
    <h2>{% trans "Contents" %}</h2>
    {{ doc.toc|safe }}
</div>
    {% endblock %}
<div class="box">
    <h2>{% trans "Search" %}</h2>
	<form method="GET" action="{{ search }}">
    <input type="text" id="q" name="q" /><input type="submit" value="{% trans "Search" %}" />
	</form>
</div>
    {{ block.super }}
{% endblock sidebar %}
