{% load i18n %} {% load permissions %} {% load translations %} {% load icons %} {% perm 'vcs.view' object as user_can_see_git_repository %} {% if user_can_see_git_repository %} {% trans "Source code repository" %} {% with repo_url=object.get_repo_url %} {% if repo_url|slice:":8" == "https://" %} {{ repo_url }} {% else %} {{ repo_url }} {% endif %} {% if object.linked_component %} {% icon "link.svg" %} {% endif %} {% endwith %} {% trans "Repository branch" %} {{ object.get_repo_branch }} {% with commit=object.get_last_remote_commit %} {% if commit %} {% trans "Last remote commit" %} {{ commit.summary }} {{ commit.shortrevision }}
{% comment %}Translators: For example: "nijel authored five days ago"{% endcomment %} {% blocktrans with author=commit|format_commit_author date=commit.authordate|naturaltime %}{{ author }} authored {{ date }}{% endblocktrans %}
{% endif %} {% endwith %} {% with commit=object.get_last_commit %} {% if commit %} {% trans "Last commit in Weblate" %} {{ commit.summary }} {{ commit.shortrevision }}
{% comment %}Translators: For example: "nijel authored five days ago"{% endcomment %} {% blocktrans with author=commit|format_commit_author date=commit.authordate|naturaltime %}{{ author }} authored {{ date }}{% endblocktrans %}
{% endif %} {% endwith %} {% with export_url=object.get_export_url %} {% if export_url %} {% trans "Weblate repository" %} {{ export_url }} {% endif %} {% endwith %} {% endif %}