Project:
{{ sbc.project or '-' }}
IP:
{{ sbc.primary_ip or '-' }}
Console:
{% if sbc.console_port %}
tcp:{{ sbc.console_port.tcp_port }}
{% else %}
-
{% endif %}
{% set claim = claims_by_sbc.get(sbc.name) %}
{% if claim %}
{{ claim.agent_name }}
{% if claim.time_remaining %}
{% set rem = claim.time_remaining.total_seconds()|int %}
{% if rem >= 3600 %}
{{ rem // 3600 }}h {{ (rem % 3600) // 60 }}m
{% elif rem >= 60 %}
{{ rem // 60 }}m
{% else %}
{{ rem }}s
{% endif %}
{% endif %}
{% if claim.pending_requests %}
!
{% endif %}
{% endif %}