{% extends "scitex_sdk/app/app_shell.html" %} {% load scitex_static scitex_project_picker %} {% comment %} Host chrome comes from scitex_sdk/app/app_shell.html (the Hub maps it to its own base page). Server-rendered on purpose: the listing needs no client state, and the two forms post to the same JSON endpoints API clients use. {% endcomment %} {% block extra_css %} {% scitex_project_provider_meta %} {% endblock %} {% block scitex_app_content %}
{% scitex_project_picker scope="project" current=dataset_project_id %}
{% if ok %}

{{ ok }}

{% endif %} {% if error %}{% endif %} {% if not project %}

Choose a project to see its datasets.

{% else %}

Files in {{ listing.data_dir }}/

{% if listing.files %} {% for f in listing.files %} {% endfor %}
PathSize (bytes)SHA-256Read by
{{ f.path }}{% if f.registered %} registered{% endif %} {{ f.size }} {% if f.sha256 %}{{ f.sha256 }}{% else %}{{ f.sha256_note }}{% endif %} {% include "scitex_dataset/_readers.html" with readers=f.readers %}
{% if listing.truncated %}

Only the first files are listed.

{% endif %} {% else %}

No files under {{ listing.data_dir }}/ yet.

{% endif %}

Registered datasets

{% if listing.registry_error %}

{{ listing.registry_error }}

{% endif %} {% if listing.registered %} {% for d in listing.registered %} {% endfor %}
NameLocationStateSize (bytes)SHA-256Read by
{{ d.name }}{% if d.note %}
{{ d.note }}
{% endif %}
{% if d.kind == "url" %}{{ d.location }}{% else %}{{ d.location }}{% endif %} {{ d.state }} {{ d.size|default_if_none:"—" }} {% if d.sha256 %}{{ d.sha256 }}{% elif d.sha256_note %}{{ d.sha256_note }}{% else %}—{% endif %} {% include "scitex_dataset/_readers.html" with readers=d.readers %}
{% else %}

No datasets registered yet.

{% endif %}

Provenance providers

{% if listing.provenance.providers %} {% else %}

No provenance provider is installed, so the scripts that read each dataset are not shown.

{% endif %}
{% if project.can_write %}

Add a dataset

{% csrf_token %}
Upload a file into {{ listing.data_dir }}/
{% csrf_token %}
Register a path in the project or a URL
{% else %}

You can read this project's datasets. Adding datasets needs write access to the project.

{% endif %} {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}