{% extends "base.html" %} {% from "ui.html" import badge, scenario, empty_row with context %} {% block title %}Storage management - Jatszoter{% endblock %} {% block header %} {% endblock %} {% block content %} {% set rows = held.deployments if held else [] %} {% if held %}
Console logs {{ rows | sum(attribute="console_bytes") | size }}
Recordings {{ rows | sum(attribute="recording_bytes") | size }}
Scenario bundles {{ held.scenario_bytes | size }}
Total {{ held.total_bytes | size }}
{% endif %}
{% for item in rows %} {% set row = deployments.get(item.deployment_id) %} {% if row %} {% set trainee = users.get(row.trainee_id) %} {% endif %} {% else %} {% if failure %} {{ empty_row(8, 'Storage could not be loaded', 'Reload the page to try again.') }} {% else %} {{ empty_row(8, 'Nothing is stored yet', 'Console logs and recordings appear here once deployments run.') }} {% endif %} {% endfor %}
Status Scenario Trainee Ended Console log Recordings Recording bytes
{{ badge(row.status) }} {{ scenario(scenarios.get(row.scenario_id)) }} {{ trainee.name if trainee else '-' }} {{ row.ended_at | when }} {{ item.console_bytes | size }} {{ item.recordings }} {{ item.recording_bytes | size }} {% if row.status not in terminal %} running {% elif item.console_bytes or item.recording_bytes %}
{% elif row.vm_id %} purged {% endif %}
{% if rows %}{{ rows | length | counted("deployment") }}{% endif %}
{% endblock %}