{% 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 and github_app_register_url %}

{% 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 %}

{% elif apps %}

{% 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 %}

{% else %}

{% translate "No code-hosting app is registered yet." %}

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

{% if app.html_url %} {{ app.app_slug }} {% else %} {{ app.app_slug }} {% endif %} ({{ app.hostname }}) {% 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 %}

{% blocktranslate count count=app.count %}One connected account{% plural %}{{ count }} connected accounts{% endblocktranslate %}

{% translate "View connections" %} {% translate "Migrate to GitHub App" %}
{% endfor %} {% translate "View all connections" %} {% endblock content %}