{% load i18n %} {% with object.project as object %} {% include "project_info.html" %} {% endwith %}

{% trans "Git repository:" %} {% if object.is_repo_link %}{{ object.linked_subproject.repo }}{% else %}{{ object.repo }}{% endif %} ( {% if object.is_repo_link %} {% blocktrans with object.linked_subproject.branch as branch %}{{ branch }} branch{% endblocktrans %} {% else %} {% blocktrans with object.branch as branch %}{{ branch }} branch{% endblocktrans %} @ {% with object.get_last_remote_commit as commit %} {{ commit.hexsha|slice:":7" }} {% include "git-commit-info.html" %} {% endwith %} ) {% endif %}