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

{% blocktranslate with workspace_name=workspace.name %}Migrate {{ workspace_name }} to the Weblate GitHub App{% endblocktranslate %} {% 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 available_entries %}
{% csrf_token %} {{ form.non_field_errors }} {{ form.components.errors }}
{{ form.components.label }} {% for checkbox in form.components %}
{{ checkbox.tag }}
{% endfor %}
{% 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 %} {% if entries %}
{% translate "Migration status" %}
{% for entry in entries %} {% endfor %}
{% translate "Component" %} {% translate "Repository" %} {% translate "Status" %}
{{ entry.component.project.name }} / {{ entry.component.name }} {{ entry.full_name }} {% if entry.canonical_url %} {% translate "Ready" %} {% else %} {% translate "Repository access needed" %} {% endif %}
{% else %}

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

{% endif %}
{% endblock content %}