{% import "components.html" as c with context %} {# one directory of the workspace: a folder opens onto its own when clicked, read from the computer the first time and only folded after #} {% set base = "/agents/" ~ ref(selected.computer_id) ~ "/" ~ ref(selected.id) ~ "/profile/workspace?path=" %} {% if workspace.answer != "listed" %}

{{ t.text("agents." ~ workspace.answer, {"code": workspace.code}) }}

{% else %} {% for entry in workspace.entries %} {% if entry.directory %}
{% else %}
{{ c.icon("file") }}{{ entry.name }}{{ entry.size_bytes|filesizeformat }}{{ entry.modified_at_ms|ago }}
{% endif %} {% endfor %} {% if workspace.more %}
{{ t.text("agents.workspace_more", {"n": workspace.entries|length}) }}
{% endif %} {% if workspace.at and not workspace.entries %}
{{ t.text("agents.folder_empty") }}
{% endif %} {% endif %}