{% import "components.html" as c with context %} {# the agent's workspace - what is in it, not where it is: a tree opened a directory at a time, as it was when the tab opened - the button at the contents' heading reads it again #} {% if workspace.at %} {# a directory below the top, for a folder opened in the tree #} {% include "agent_profile_files.html" %} {% elif workspace.answer != "listed" %}

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

{% else %}
{{ t.text("agents.workspace_entries") }}
{% if not workspace.entries %}
{{ t.text("agents.workspace_empty") }}
{% else %}
{% include "agent_profile_files.html" %}
{% endif %} {% endif %}