{% load i18n %}
{% load translations %}
{% load permissions %}
{% load humanize %}
{% load icons %}
{% with needs_commit=object.needs_commit %}
{% perm 'vcs.commit' object as user_can_commit_translation %}
{% perm 'vcs.update' object as user_can_update_translation %}
{% perm 'vcs.push' object as user_can_push_translation %}
{% perm 'vcs.reset' object as user_can_reset_translation %}
{% perm 'component.lock' object as user_can_lock_component %}
{% documentation_icon 'devel/integration' 'manage-vcs' right=True %}
{% trans "Repository status" %}
{{ pending_units|intcomma }}
|
{% trans "Pending changes not yet committed to the Weblate repository" %}
|
{% if user_can_commit_translation %}
{% trans "Commit" %}
{% endif %}
|
{{ outgoing_commits|intcomma }}
|
{% trans "Outgoing commits in the Weblate repository" %}
|
{% if user_can_push_translation %}
{% trans "Push" %}
{% endif %}
|
{{ missing_commits|intcomma }}
|
{% trans "Missing commits in the Weblate repository" %}
|
{% if user_can_update_translation %}
{% endif %}
|
{% if object.is_lockable %}
{% if object.locked %}
{% icon "lock.svg" %}
{% endif %}
|
{% trans "Locking prevents translators from doing changes" %}
|
{% if user_can_lock_component %}
{% if object.locked %}
{% trans "Unlock" %}
{% else %}
{% trans "Lock" %}
{% endif %}
{% endif %}
|
{% endif %}
{% if user_can_reset_translation %}
|
{% trans "Resetting removes all changes in Weblate so that the repository matches upstream. Use with caution." %}
|
|
{% endif %}
{% for component in repositories %}
{% blocktrans %}Repository for {{ component }}{% endblocktrans %}
{% include "snippets/git-info.html" with object=component %}
{% trans "Repository details" %} |
{{ component.repository.status }} |
{% endfor %}
{% trans "Repository changes" %}
{% include "last-changes-content.html" with last_changes=changes %}
{% endwith %}