{% extends "base.html" %} {% load i18n ui help %}{% comment %} A gridded run's Files tab (#289, the GridFiles board), which replaced the job cards' file tables: the run's context bar, then the index files in the File group pattern (one closed disclosure per group, the first open, each with "Download these (zip)" beside its summary; Code, Index, Freq., File, the netCDF variables in it, Size), grouped by theme, variable needed or frequency (a GET form, so it works without JavaScript; htmx swaps only the groups). Beside them: Everything (Download all, the links for wget -i, the folder the files were copied to), the run's record (run.json, the log, trends.nc, and the thresholds file when the run kept one) and a note on reading the files. Until every job has finished the groups wait for them. Context from views.files (bar_context, files_context). {% endcomment %} {% block title %}{% blocktranslate with name=run_name %}Files: {{ name }}{% endblocktranslate %}{% endblock %} {% block content %}
{% include "gridded/_run_bar.html" %}

{% translate "Index files" %}{% if index_count %} {% blocktranslate count counter=index_count with size=index_size|filesizeformat trimmed %}{{ counter }} file · {{ size }}{% plural %}{{ counter }} files · {{ size }}{% endblocktranslate %}{% endif %}

{% if groups %}
{% endif %}
{% if groups %}
{% for group in groups %}
{% icon "chevron-down" %}{% if group.hue %}{% endif %}{{ group.label }} {% blocktranslate count counter=group.rows|length with size=group.size|filesizeformat trimmed %}{{ counter }} file · {{ size }}{% plural %}{{ counter }} files · {{ size }}{% endblocktranslate %}
{% for row in group.rows %} {% endfor %}
{% translate "Code" %}{% translate "Index" %}{% translate "Freq." %}{% translate "File" %}{% translate "Variables" %}{% translate "Size" %}
{{ row.code }} {{ row.name }} {{ row.file.freq }} {{ row.file.name }} {{ row.variables }} {{ row.file.size|filesizeformat }}
{% translate "Download these (zip)" %} {{ group.label }}
{% endfor %}
{% elif run_state.active %}

{% url 'gridded:run' run.pk as map_url %}{% blocktranslate trimmed %}The files are listed here once the run has finished. See how it is going{% endblocktranslate %}

{% elif run_done %}

{% translate "This run made no index files: it calculated a thresholds file only, listed with the run's record." %}

{% else %}

{% url 'gridded:run' run.pk as map_url %}{% blocktranslate trimmed %}The run did not finish, so it has no files. What happened{% endblocktranslate %}

{% endif %}
{% endblock %}