{% load i18n icons permissions translations %} {% perm 'vcs.view' object as user_can_see_git_repository %} {% if user_can_see_git_repository %} {% translate "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 %} {% translate "Repository branch" %} {{ object.get_repo_branch }} {% with pull_request_url=object.effective_repo_component.pull_request_url %} {% if pull_request_url|slice:":8" == "https://" or pull_request_url|slice:":7" == "http://" %} {% translate "Pull request" %} {{ pull_request_url }} {% endif %} {% endwith %} {% with commit=object.get_last_remote_commit %} {% if commit %} {% translate "Last remote commit" %} {{ commit.summary }} {{ commit.shortrevision }}
{% comment %}Translators: For example: "nijel authored five days ago"{% endcomment %} {% blocktranslate with author=commit|format_commit_author date=commit.authordate|naturaltime %}{{ author }} authored {{ date }}{% endblocktranslate %} {% endif %} {% endwith %} {% with commit=object.get_last_commit %} {% if commit %} {% translate "Last commit in Weblate" %} {{ commit.summary }} {{ commit.shortrevision }}
{% comment %}Translators: For example: "nijel authored five days ago"{% endcomment %} {% blocktranslate with author=commit|format_commit_author date=commit.authordate|naturaltime %}{{ author }} authored {{ date }}{% endblocktranslate %} {% endif %} {% endwith %} {% with export_url=object.get_export_url %} {% if export_url %} {% translate "Weblate repository" %} {{ export_url }} {% endif %} {% endwith %} {% endif %}