{% load i18n %} {% load url from future %} {% with object.git_needs_commit as needs_commit %} {% if perms.trans.commit_translation or perms.trans.update_translation %} {% if needs_commit %}

{% trans "There are some not commited changes!" %}

{% endif %} {% if object.git_needs_pull %}

{% trans "Remote Git repository needs to be merged!" %}

{% endif %} {% if object.git_needs_push %}

{% trans "There are some new commits in local Git repository!" %}

{% endif %}

{% trans "Details" %}

{% if object.subproject_set %} {% for sp in object.subproject_set.all %}

{{ sp }}

{{ sp.get_repo.git.status }}
{% endfor %} {% else %}
{{ object.get_repo.git.status }}
{% endif %}
{% endif %} {% endwith %}