{% from "ui.html" import badge, empty_row with context %} {% from "flash.html" import flash %}
{% if registrations %}

Pending registrations

{% for row in registrations %} {% endfor %}
Name Labels State Registered
{{ row.name }} {{ row.labels | join(" ") }} {{ badge('pending', 'warning') }} {{ row.registered_at | when(True) }}
{% endif %}

Agents

{% for row in agents %} {% else %} {% if failure %} {{ empty_row(7, 'The list could not be loaded', 'It is tried again on the next refresh, in 5 seconds.') }} {% else %} {{ empty_row(7, 'No agents yet', 'An agent registers itself when it starts; its registration waits here for approval.') }} {% endif %} {% endfor %}
Name Labels State Last heartbeat Capacity Lease deadline
{{ row.name }} {{ row.labels | join(" ") }} {{ badge(row.state) }} {{ row.heartbeat_at | when(True) }} {{ '-' if row.capacity is none else row.capacity }} {{ row.lease_expires_at | when(True) }} {% if row.state == "enabled" %}
{% else %}
{% endif %}
{% if agents %}{{ agents | length | counted("agent") }}{% endif %}
{% if failure and swapped %}
{{ flash(failure) }}
{% endif %}