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

{% translate "Import from connected GitHub account" %} {% if github_app_install_url %} {% translate "Connect GitHub account" %} {% endif %}

{% if github_app_install_url %} {% include "vcs/github_install_help.html" %} {% endif %} {% if installations %}
{% translate "Connected accounts" %}
{% for installation in installations %} {% endfor %}
{% translate "Account" %} {% translate "Workspace" %} {% translate "Repositories" %} {% translate "Actions" %}
{{ installation.target_login }} ({{ installation.target_type }}) {{ installation.workspace }} {{ installation.repositories|length }} {% if installation.pk in 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 %}
{% endif %} {% if repositories %}

{% translate "Select a repository to import. This will pre-fill the component creation form with the repository URL and branch." %}

{% for repo in repositories %} {% endfor %}
{% translate "Repository" %} {% translate "Workspace" %} {% translate "Account" %} {% translate "Branch" %} {% translate "Visibility" %} {% translate "Actions" %}
{{ repo.full_name }} {% if repo.description %}
{{ repo.description }} {% endif %}
{{ repo.workspace_name }} {{ repo.account_name }} {{ repo.default_branch }} {% if repo.private %} {% translate "Private" %} {% else %} {% translate "Public" %} {% endif %} {% translate "Import" %}
{% else %}

{% translate "No repositories available from connected GitHub accounts." %} {% if not installations %} {% if github_app_install_url %} {% translate "Install the Weblate GitHub app to connect a GitHub organization or user account." %} {% elif github_app_configured %} {% translate "Select a project with a workspace before connecting a GitHub account. GitHub accounts are connected to workspaces." %} {% else %} {% translate "Weblate GitHub app is not registered on this Weblate instance." %} {% endif %} {% else %} {% translate "Try refreshing the repository list." %} {% endif %}

{% endif %}
{% endblock content %}