{# il2ks-template: templates/il2ks/setup_gate.html v1 - copy this line along when you override #} {% extends "il2ks/base.html" %}{% load i18n il2ks %}{% comment %} What the setup page shows to a local visitor without a valid token. Context: state (need, wrong, locked, broken), token_file (Path), problem (broken only), minutes (locked only). No form data and no secrets here. {% endcomment %} {% block nav %}{% endblock %} {% block content %}

{% translate "First-run setup" %}

{% if state == "locked" %} {% notice "warning" title=_("Too many wrong tokens") %}{% blocktranslate with minutes=minutes %}Setup is locked for about {{ minutes }} minutes after several wrong tokens. Restarting il2ks also unlocks it.{% endblocktranslate %}{% endnotice %} {% elif state == "broken" %} {% notice "warning" title=_("The configuration does not load") %}{{ problem }}{% endnotice %}

{% translate "Fix the setting named above in il2ks.toml, restart il2ks and open this page again." %}

{% else %} {% if state == "wrong" %} {% notice "warning" title=_("That token is not right") %}{% translate "Check that you copied all of it. After several wrong tries this page locks for a while." %}{% endnotice %} {% endif %}

{% translate "To make sure it is really you, setup needs the one-time token that il2ks created for this installation." %}

{% translate "Where to find it:" %}

{% endif %} {% endblock %}