{% extends "base.html" %} {% load i18n %} {% block breadcrumbs %} {% include "vcs/workspace_breadcrumbs.html" with workspace=selected_workspace current=True only %} {% endblock breadcrumbs %} {% block content %}

{% translate "Code-hosting connections" %}

{% if not apps %}

{% translate "A site administrator needs to register a code-hosting app first." %}

{% else %}

{% translate "Use connected accounts to import repositories and migrate existing components." %}

{% translate "Review component migration" %} {% if has_ready_components %} {% translate "Migrate all eligible components" %} {% endif %} {% endif %}
{% for app in apps %}

{% if app.config.html_url %} {{ app.config.app_slug }} {% elif app.config.app_slug %} {{ app.config.app_slug }} {% else %} {% translate "Code-hosting app" %} {% endif %} ({{ app.hostname }}) {% if not app.config %} {% translate "Not registered" %} {% endif %}

{% if not app.config %}
{% blocktranslate trimmed with hostname=app.hostname %} Code-hosting 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.install_url %} {% translate "Connect GitHub account" %} {% endif %}
{% translate "Connected accounts" %}
{% if app.installations %} {% for installation in app.installations %} {% endfor %}
{% translate "Account" %} {% translate "Provider ID" %} {% translate "Repositories" %} {% translate "Status" %} {% translate "Actions" %}
{{ installation.target_login }} ({{ installation.target_type }}) {{ installation.installation_id }} {{ installation.repositories|length }} {% if installation.enabled %} {% translate "Active" %} {% else %} {% translate "Disabled" %} {% endif %} {% translate "Repositories" %} {% if can_manage %}
{% 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 accounts yet." %}

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