{% load i18n %} {% load url from future %} {% with object.git_needs_commit as needs_commit %}

{% trans "Repository status" %}

{% if needs_commit %}

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

{% endif %} {% if object.git_needs_merge %}

{% trans "The remote repository needs to be merged!" %}

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

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

{% endif %} {% if not needs_commit and not object.git_needs_merge and not object.git_needs_push %}

{% trans "The local repository is up to date." %}

{% endif %} {% if object.subproject_set %} {% else %} {% with object.get_last_remote_commit as commit %}

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

{% endwith %} {% with object.get_export_url as export_url %} {% if export_url %}

{% trans "Git repository with Weblate translations:" %} {{ export_url }}

{% endif %} {% endwith %} {% endif %}

{% trans "Repository details" %}

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

{{ sp }}

{{ sp.repository.status }}
        
{% endfor %} {% else %}
{{ object.repository.status }}
        
{% endif %}
{% if perms.trans.commit_translation or perms.trans.update_translation %}

{% trans "Repository tools" %}

{% if perms.trans.reset_translation %} {% endif %} {% if perms.trans.lock_subproject and object.is_lockable %} {% if object.locked %} {% else %} {% endif %} {% endif %}
{% trans "Commit" %}

{% trans "Commit pending changes to the local repository" %}

{% trans "Pull" %}

{% trans "Pull changes from the remote repository" %}

{% trans "Push" %}

{% trans "Push changes to the remote repository" %}

{% trans "Rebase" %}

{% trans "Rebase local changes onto the remote repository" %}

{% trans "Reset" %}

{% trans "Reset all changes in the local repository" %}

{% trans "Unlock" %}

{% trans "Allow changes in the local repository" %}

{% trans "Lock" %}

{% trans "Prevent any changes in the local repository" %}

{% endif %}
{% endwith %}