{% extends "base.html" %}
{% load i18n %}
{% load url from future %}

{% block breadcrumbs %}
<li><a href="{{ object.project.get_absolute_url }}">{{ object.project }}</a></li>
<li><a href="{{ object.get_absolute_url }}">{{ object.name }}</a></li>
{% endblock %}

{% block content %}
{% include "show-lock.html" %}

<h2>{% trans "Project Information" %}</h2>

{% include "subproject_info.html" %}

<h2>{% trans "Translations" %}</h2>

{% with object.translation_set.enabled as translations and 1 as show_language %}
{% include "list-translations.html" %}
{% endwith %}

{% url 'weblate.accounts.views.contact' as contact_url %}


<h2>{% trans "Tools" %}</h2>

<div class="tabs" id="subproject-tabs">
<ul>
<li><a href="#changes">{% trans "Recent changes" %}</a></li>
<li><a href="#new-lang">{% trans "New language" %}</a></li>
{% if perms.trans.commit_translation or perms.trans.update_translation %}
<li><a href="{% url 'weblate.trans.views.git_status_subproject' project=object.project.slug subproject=object.slug %}">{% trans "Git maintenance" %}</a></li>
{% endif %}
<li><a href="#share">{% trans "Share" %}</a></li>
<li><a href="#source">{% trans "Source" %}</a></li>
</ul>

<div id="new-lang">
{% if object.project.new_lang == 'url' %}
<p>{% blocktrans with object.project.instructions as url %}Should your language be missing, please follow <a href="{{ url }}">translator instructions</a>.{% endblocktrans %}</li>
{% else %}
<p>{% blocktrans %}Should your language be missing, please <a href="{{ contact_url }}?subject=New+language+request+for+{{ object }}">contact us</a>.{% endblocktrans %}</li>
{% endif %}
</div>

<div id="changes">
{% include "last-changes.html" %}
</div>

<div id="share">
{% url 'weblate.trans.widgets.widgets' project=object.project.slug as widgets_url %}
{% url 'weblate.trans.views.data_project' project=object.project.slug as data_url %}
{% include 'share.html' %}
</div>

<div id="source">
<a href="{% url 'weblate.trans.views.show_source' project=object.project.slug subproject=object.slug %}">{% trans "Source strings review" %}</a>
</div>

</div>

{% endblock %}

