{% set short = ref(row.kept.agent.id) %} {# a page of a directory's entries at their depth, folders first: a folder reads the level under it the first time it opens; past the page, the rest come a page at a time #} {% if directory is none %}
{{ t.text("agents.workspace.unanswered", {"computer": row.computer.name if row.computer else "—"}) }}
{% elif not directory.total %}
{{ t.text("agents.workspace.empty") }}
{% else %} {% for entry in directory.entries %} {% set path = (directory.path ~ "/" if directory.path else "") ~ entry.name %} {% if entry.directory %}
{% else %} {% endif %} {% endfor %} {% set listed = offset + directory.entries | length %} {% if listed < directory.total %} {% endif %} {% endif %}