{% load i18n %} {% comment %} Visibility rules so the card never shows on the UI permanently: - can_view: hidden by default; the JS silently checks `bootstrap-status` on load and reveals it only for a genuine needs-attention state (the backend answered HTTP 200 with `ok:false`). Healthy / unreachable / unconfigured backends stay hidden. - repair-only (can repair but NOT view status): the card is rendered visible so the operator keeps the repair affordance they are authorized to use; no bootstrap payload is exposed (the body shows the permission notice). - neither view nor repair: hidden. So the card is server-visible only when `not can_view and can_repair_sync_state`. {% endcomment %}
{% trans "Repair / Rebuild Proxbox sync-state" %} {% if can_repair_sync_state %}
{% csrf_token %}
{% else %} {% endif %}

{% blocktrans trimmed %} Reconcile Proxbox custom-field definitions through proxbox-api, then queue a normal full sync job to rebuild reflected sync-state data. {% endblocktrans %}

{% trans "Backend bootstrap status" %} {% if bootstrap_status.can_view %} {% trans "Not checked" %} {% else %} {% trans "Permission required" %} {% endif %}
{% if bootstrap_status.can_view %}

            

{% trans "Status is loaded on demand to avoid delaying this page." %}

{% else %}

{% trans "Viewing bootstrap status requires FastAPI endpoint view permission." %}

{% endif %}