{% from "_macros.html" import icon %}
{#
One connection: an editable form plus its current status.
Swapped in place by "Test & refresh" and "Check balance", so this fragment
has to render on its own as well as inside the list: everything it reads
besides `connection` comes in `row` (api/admin.py `_row_context`).
#}
{% set health = connection.health_json or {} %}
{% set status = health.status if connection.enabled else "off" %}
{% set balance = health.balance or {} %}