{% extends "base.html" %} {% block title %}Dashboard - Lab Controller{% endblock %} {% block content %} {% if sbcs %}
{% for sbc in sbcs %}

{{ sbc.name }}

{{ sbc.status.value }}
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 %}
{% endfor %}
{% else %}

No SBCs configured

Use labctl add <name> to add an SBC.

{% endif %} {% endblock %}