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

{% translate "Register Weblate GitHub App" %}

{% blocktranslate trimmed %} Submit the form below to create a GitHub App with all the permissions and events Weblate needs already filled in. After you confirm the App's name on GitHub, you will be redirected back here and the credentials will be stored automatically. {% endblocktranslate %}

{% if existing_hosts %}
{% if host_already_registered %} {% blocktranslate trimmed with host=hostname %} The {{ host }} host already has stored GitHub App credentials. You can edit the form, but submitting this host again will be rejected. {% endblocktranslate %} {% else %} {% translate "GitHub hosts that already have a Weblate GitHub App registered:" %} {% for host in existing_hosts %} {{ host }} {% if not forloop.last %},{% endif %} {% endfor %} {% endif %}
{% endif %}
{% csrf_token %} {% crispy register_form %}
    {% for permission, level in permissions.items %}
  • {{ permission }} — {{ level }}
  • {% endfor %}
    {% for event in events %}
  • {{ event }}
  • {% endfor %}
{% translate "Cancel" %}

{% translate "Manifest preview" %}

{% translate "The JSON document below is the manifest that GitHub will use to pre-fill the new App's settings." %}

{{ manifest_json }}
{% endblock content %}