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

Links

{% if not ended %} {% endif %}
{% for link in links %} {% endfor %}
User Role Opened State
{{ names.get(link.user_id, "-") }} {{ link.role }} {% if link.opened_at %} {{ link.opened_at | when(True) }} {% else %} not opened {% endif %} {% if link.revoked_at %} revoked {{ link.revoked_at | when(True) }} {% else %} live {% endif %} {% if not link.revoked_at %} {% endif %}

Checks

{% for check in checks %} {% else %} {% if ended %} {{ empty_row(6, 'No checks yet', 'No check was requested before the deployment ended.') }} {% else %} {{ empty_row(6, 'No checks yet', 'A check runs the scenario check script on the VM; it can be requested once the deployment is READY.') }} {% endif %} {% endfor %}
Status Requested By Exit Message Detail
{{ badge(check.status) }} {{ check.created_at | when(True) }} - {{ "-" if check.exit_code is none else check.exit_code }} {{ check.message or ("waiting for the agent" if check.status == "pending" else "-") }} {{ check.detail or "-" }}

Recordings

{% for recording in recordings %} {% set link = links_by_id.get(recording.link_id) %} {% set closed = link and link.revoked_at %} {% else %} {{ empty_row(5, 'No recordings yet', 'A recording starts when the trainee first opens the link.') }} {% endfor %}
Trainee link Started Size Duration
{{ names.get(link.user_id, "-") if link else "-" }} {{ recording.created_at | when(True) }} {{ recording.size_bytes | size if closed else "-" }} {{ recording.duration_seconds | duration if closed else "-" }} {% if closed %} {# djlint:off J018 #} Replay {# djlint:on #} {% else %} recording, replay after the link closes {% endif %}
{% if oob %} {% include "deployment_summary.html" %} {% if not ended %} {% include "deployment_check.html" %} {% endif %} {% endif %}