{% 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 code-hosting 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 apps below provide credentials Weblate uses to talk to code hosting providers. Connect an 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 "Provider 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 accounts yet. Use the button above to connect an organization or user account." %}

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