{% extends "projects/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}{{ repository.name }} - {{ project.name }} - Pychestrate{% endblock %} {% block content %}
URL
{{ repository.url }}
Authentication
{% set auth_labels = {'none': 'Public', 'https_token': 'HTTPS access token', 'ssh_key': 'SSH private key'} %}
{{ auth_labels.get(repository.auth_type.value, repository.auth_type.value) }}
{% if repository.auth_type.value != 'none' %}
Credential secret: {{ repository.credential_secret_ref or 'not set' }}
{% endif %}
Default Branch
{{ repository.default_branch }}

Last Commit

{% if repository.last_commit_sha %}
SHA {{ repository.last_commit_sha }}
Message {{ repository.last_commit_message or '—' }}
Author {{ repository.last_commit_author or '—' }}
Time {{ repository.last_commit_time | format_datetime('%Y-%m-%d %H:%M:%S', '—') }}
Last Fetch {{ repository.last_fetch_time | format_datetime('%Y-%m-%d %H:%M:%S', 'Never') }}
{% else %} {% if can_manage %}{{ ui.empty_state("No commit information yet", hint="Use Fetch to retrieve the latest commit from the repository.") }}{% else %}{{ ui.empty_state("No commit information yet", hint="A project developer can fetch the latest commit.") }}{% endif %} {% endif %}
{% if can_delete %}
{% if repository_specs %}

This repository cannot be removed while build specifications build it: {{ repository_specs | join(', ') }}. Delete them or point them at another repository first.

{% endif %} {% if not repository_specs %}
{% endif %}
{% endif %} {% endblock %}