{% extends "base.html" %} {% load i18n %} {% block breadcrumbs %} {% if selected_workspace %} {% endif %} {% endblock breadcrumbs %} {% block content %}

{% translate "VCS integrations" %}

{% if not managed_workspaces %}

{% translate "You do not manage any workspaces. VCS accounts can be connected only to workspaces you manage." %}

{% elif not apps %}

{% translate "No VCS integrations are available. A site administrator needs to register a Weblate GitHub App first." %}

{% else %}

{% if selected_workspace %} {% blocktranslate trimmed with workspace=selected_workspace %} Connect code hosting accounts to {{ workspace }}. These accounts can then be used when creating components from version control. {% endblocktranslate %} {% else %} {% translate "Connect code hosting accounts to workspaces you manage. These accounts can then be used when creating components from version control." %} {% endif %}

{% endif %}
{% for app in apps %}

{% if app.html_url %} {{ app.app_slug }} {% elif app.app_slug %} {{ app.app_slug }} {% else %} {% translate "GitHub App" %} {% endif %} ({{ app.hostname }}) {% if not app.configured %} {% translate "Not registered" %} {% endif %}

{% if not app.configured %}
{% blocktranslate trimmed with hostname=app.hostname %} Weblate GitHub App credentials are not registered for {{ hostname }}. Existing connected accounts can be removed, but new accounts cannot be connected until a site administrator registers the App again. {% endblocktranslate %}
{% endif %} {% if app.workspace_links %}
{% translate "Connect accounts" %}
{% for item in app.workspace_links %} {% endfor %}
{% translate "Workspace" %} {% translate "Actions" %}
{{ item.workspace }} {% translate "Connect GitHub account" %}
{% endif %}
{% translate "Connected accounts" %}
{% if app.installations %} {% for installation in app.installations %} {% endfor %}
{% translate "Account" %} {% translate "Workspace" %} {% translate "GitHub installation ID" %} {% translate "Repositories" %} {% translate "Status" %} {% translate "Actions" %}
{{ installation.target_login }} ({{ installation.target_type }}) {{ installation.workspace }} {{ installation.installation_id }} {{ installation.repositories|length }} {% if installation.enabled %} {% translate "Active" %} {% else %} {% translate "Disabled" %} {% endif %} {% translate "Repositories" %} {% if installation.pk in app.manageable_installations %}
{% csrf_token %}
{% include "vcs/snippets/github_account_remove_modal.html" with installation=installation next_url=next_url csrf_token=csrf_token only %} {% endif %}
{% else %}

{% translate "No connected GitHub accounts yet." %}

{% endif %}
{% endfor %} {% endblock content %}