{# The sharing settings body: a read-only status strip for this device (its ID and hub connection — context for pairing, not inputs to it) followed by the pairing panel itself. Both live under #devices-section so one swap refreshes the pair. #}
{% if not sharing.available %}

{{ _("Device sharing is not running in this process. Start Yaffo with the full application (python -m yaffo) to enable it.") }}

{% else %} {% set device_id_help = _('Shown so you can visually confirm it from another device during pairing.') %}
{{ _("This device") }} {{ sharing.device_id }}
{{ _("Sharing hub") }} {% if sharing.hub_connected %} {{ _("Connected") }} {% else %} {{ _("Disconnected") }} {% endif %} {{ sharing.hub_url }}

{{ _("Pair a device") }}

{% set show_code_help = _('Pairing establishes trust between two of your devices, once. Generate a code here, then paste or scan it on the other device — both must be online at the same time.') %}

{{ _("Show a pairing code") }}

{{ _("Generate a code here, then paste or scan it on the other device within 5 minutes.") }}

{{ _("Enter a pairing code") }}

{{ _("Paste the code generated on your other device. Pairing can take up to a minute.") }}

{% endif %}