{% 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_merge %}

{% 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 %} {% if object.subproject_set %} {% else %} {% with object.get_last_remote_commit as commit %}

{% trans "Last remote commit:" %} {% include "git-commit-info.html" %}

{% endwith %} {% endif %}

{% trans "Details" %}

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

{{ sp }}

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