{% extends "base.html"  %}

{% load i18n baseurl translation_project_tags cache %}

{% block title %}
{{ block.super }}: {{ translation_project.fullname }}
{% endblock %}

{% block extra_head %}
<link rel="alternate" type="application/rss+xml" href="{% url pootle_notifications.feeds.view feed_path %}" />
{% endblock %}

{% block search %}
{% cache settings.CACHE_TIMEOUT tp_search translation_project.id LANGUAGE_CODE %}
{% render_search %}
{% endcache %}
{% endblock %}

{% block breadcrumbs %}
<div id="breadcrumbs">
  <h2 class="title">{% block breadcrumbs_content %}
    {% cache settings.CACHE_TIMEOUT tp_bread directory.id LANGUAGE_CODE %}
    <a href="{{ language.pootle_path|l }}">{{ language.localname }}</a> » <a href="{{ translation_project.pootle_path|l }}">{{ translation_project.project }}</a>
    {% if directory.trail.count %} »
    {% for dir in directory.trail %}
    <a href="{{ dir.pootle_path|l}}">{{ dir.name }}</a> /
    {% endfor %}
    {% endif %}
    {% endcache %}
    {% endblock %}</h2>
</div>
{% endblock %}

{% block precontent %}
{% include "tp_menu.html" %}
{% endblock %}

{% block scripts_extra %}
<script type="text/javascript" src='{{ "js/search.js"|m }}'></script>
{% endblock %}
