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

{% translate "Weblate GitHub Apps" %} {% if github_app_register_url %} {% translate "Register Weblate GitHub App" %} {% endif %}

{% if not apps %}

{% blocktranslate trimmed %} No Weblate GitHub App is registered yet. Use the button above to create one with the right permissions and webhook URL already filled in — Weblate will store the credentials automatically once GitHub redirects back. {% endblocktranslate %}

{% else %}

{% blocktranslate trimmed %} The GitHub Apps below provide credentials Weblate uses to talk to GitHub. Connect a GitHub account to each App to import repositories from that account. {% endblocktranslate %}

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

{% if app.html_url %} {{ app.app_slug }} {% else %} {{ app.app_slug }} {% endif %} ({{ app.hostname }}) {% if app.install_url %} {% translate "Connect GitHub account" %} {% endif %} {% if app.can_remove %} {% else %} {% endif %}

{% translate "App ID" %}
{{ app.app_id }}
{% translate "Slug" %}
{{ app.app_slug }}
{% translate "GitHub host" %}
{{ app.hostname }}
{% if app.can_remove %}
{% csrf_token %}
{% endif %}
{% translate "Connected accounts" %}
{% if app.installations %} {% include "vcs/github_install_help.html" %} {% 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 "Details" %}
{% else %}

{% translate "No connected GitHub accounts yet. Use the button above to connect a GitHub organization or user account." %}

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