{% from "ui.html" import badge, scenario with context %}
Status {{ badge(deployment.status) }} {% if deployment.reason %}{{ deployment.reason }}{% endif %}
Scenario {{ scenario(scenarios.get(deployment.scenario_id)) }}
Trainee {{ trainee.name if trainee else '-' }}
Agent {{ agent.name if agent else '-' }}
Resources {{ deployment.cpus | counted("CPU") }}, {{ deployment.memory_mib }} MiB, {{ deployment.disk_gib }} GiB
Timeouts bootstrap {{ deployment.bootstrap_seconds }} s, check {{ deployment.check_seconds }} s, session {{ deployment.session_minutes }} min
Session ends {{ session_ends | when }}