{% from "ui.html" import badge, scenario as scenario_cell, empty_row with context %}
{% for row in rows %} {% set person = users.get(row.deployment.trainee_id) %} {% else %} {% if failure %} {{ empty_row(7, 'Results could not be loaded', 'Reload the page to try again.') }} {% elif scenario or trainee %} {% set person = users.get(trainee) %} {% set who = person.name if person else "Nobody" %} {% if scenario %} {% set text = who ~ " has no checked deployment of " ~ scenario ~ "." if trainee else "No deployment of " ~ scenario ~ " has a check." %} {% else %} {% set text = who ~ " has no checked deployment." %} {% endif %} {{ empty_row(7, "No results match the filters", text, "Clear filters", url_for('results').path) }} {% else %} {{ empty_row(7, 'No results yet', 'A row appears once a deployment has a check.') }} {% endif %} {% endfor %}
Scenario Trainee Deployment Last check Message Checks
{{ scenario_cell(scenarios.get(row.deployment.scenario_id)) }} {{ person.name if person else '-' }} {{ badge(row.deployment.status) }} {{ badge(row.last.status) }} {{ row.last.message or '' }} {{ row.checks }}
{% if rows %}{{ rows | length | counted("deployment") }}{% endif %}