{% load i18n %} {% load translations %} {% load permissions %} {% with object.repo_needs_commit as needs_commit %} {% perm 'vcs.commit' project as user_can_commit_translation %} {% perm 'vcs.update' project as user_can_update_translation %} {% perm 'vcs.push' project as user_can_push_translation %} {% perm 'vcs.reset' project as user_can_reset_translation %} {% perm 'translation.delete' project as user_can_remove_translation %} {% perm 'component.lock' project as user_can_lock_component %}

{% trans "Repository status" %}

{% if needs_commit %} {% endif %} {% if changes.0.is_merge_failure %} {% else %} {% if object.repo_needs_merge %} {% endif %} {% if object.repo_needs_push %} {% endif %} {% if not needs_commit and not object.repo_needs_merge and not object.repo_needs_push %} {% endif %} {% endif %} {% if object.component_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 "Repository containing Weblate translations:" %} {{ export_url }}

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

{% trans "Repository details" %}

{% for status in statuses %} {% if status.0 %}

{{ status.0 }}

{% endif %}
{{ status.1 }}
{% endfor %}

{% trans "Repository changes" %}

{% for change in changes %} {% if change.target %} {% endif %} {% endfor %}
{{ change.timestamp|naturaltime }} {{ change.get_user_display }} {{ change.get_action_display }} {% if change.translation %} {{ change.translation.language }} {% endif %}
{{ change.target }}

{% trans "Repository tools" %}

{% if user_can_commit_translation %} {% endif %} {% if user_can_update_translation %} {% endif %} {% if user_can_push_translation %} {% endif %} {% if user_can_update_translation %} {% endif %} {% if user_can_reset_translation %} {% endif %} {% if user_can_lock_component and object.is_lockable %} {% if object.locked %} {% else %} {% endif %} {% endif %} {% if translation and user_can_remove_translation %} {% endif %}
{% csrf_token %}

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

{% csrf_token %}

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

{% csrf_token %}

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

{% csrf_token %}

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

{% csrf_token %}

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

{% csrf_token %}

{% trans "Cleanup all untracked files in the local repository" %}

{% csrf_token %}

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

{% csrf_token %}

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

{% csrf_token %}

{% blocktrans %}Removes current translation from the repository.{% endblocktrans %}

{% endwith %}