{% load i18n %}{% get_current_language as LANGUAGE_CODE %} {% blocktranslate %}Connect a device — {{ brand_name }}{% endblocktranslate %} {% if step == 'enter_code' %}

{% translate "Connect a device" %}

{% translate "Type the code that the CLI printed on your server." %}

{% if error %}

{{ error }}

{% endif %}
{% csrf_token %}
{% elif step == 'consent' %}

{% blocktranslate %}Authorize {{ client_name }}?{% endblocktranslate %}

{% blocktranslate with email=user.email %}Signed in as {{ email }}. Confirm that this device asked to connect to {{ brand_name }}.{% endblocktranslate %}

{% if error %}

{{ error }}

{% endif %}

{% blocktranslate %}Code on the device: {{ user_code }}{% endblocktranslate %}

{% csrf_token %}

{% translate "Choose what to allow" %}

{% for scope in scopes %}
{% empty %}
{% translate "No special permissions requested." %}
{% endfor %}
{% elif step == 'result' %} {% if success %}

{% translate "Authorized" %}

{% translate "You can close this page. The CLI will pick up the access automatically within a few seconds." %}

{% else %}

{% translate "Not authorized" %}

{% if error %}{{ error }}{% else %}{% translate "You denied the request. The CLI will stop polling shortly." %}{% endif %}

{% endif %} {% endif %}