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

{% blocktranslate with workspace_name=workspace.name %}Migrate {{ workspace_name }} to the Weblate GitHub App{% endblocktranslate %} {% if host %}({{ host }}){% endif %} {% if github_app_install_url %} {% translate "Connect or update GitHub account" %} {% endif %}

{% blocktranslate trimmed %} Select existing Git or GitHub components to use the Weblate GitHub App. Their repository URLs will be replaced by canonical HTTPS URLs, and separate push URLs will be removed. {% endblocktranslate %}

{% if required_accounts %}

{% blocktranslate trimmed with accounts=required_accounts|join:", " %} The GitHub App needs repository access for these accounts: {{ accounts }}. {% endblocktranslate %}

{% endif %} {% if installations %}

{% translate "Connected GitHub accounts:" %}

{% endif %} {% if unavailable_entries %}
{% if github_app_install_url %} {% if available_entries %} {% translate "Connect or update the GitHub App to grant access to the remaining repositories." %} {% else %} {% translate "Connect the GitHub App to the listed accounts and grant access to their repositories before migrating." %} {% endif %} {% else %} {% translate "A workspace owner needs to connect the GitHub App and grant access to these repositories before they can be migrated." %} {% endif %}
{% endif %} {{ form.non_field_errors }} {{ form.components.errors }} {% if entries %}
{% csrf_token %}
{% if available_entries %} {% endif %} {% for entry in entries %} {% if available_entries %} {% endif %} {% endfor %}
{% translate "Migration status" %}
{% translate "Select" %}{% translate "Component" %} {% translate "Repository" %} {% translate "Status" %}
{% if entry.status == "ready" %} {{ entry.checkbox.tag }} {% endif %} {% path_object_links entry.component flags=False %} {{ entry.full_name }} {% if entry.status == "using-app" %} {% translate "Using GitHub App" %} {% elif entry.status == "ready" %} {% translate "Ready" %} {% else %} {% translate "Repository access needed" %} {% endif %}
{% if available_entries %} {% endif %}
{% else %}

{% translate "There are no GitHub components in this workspace that can be migrated." %}

{% endif %}
{% endblock content %}