{% load i18n ui %}{% comment %} The set-up page's Files table (#291, the GridSetup board): a row for the files that hold the same variables, joined along time ("60 files, 1961–2020", the files listed one click away) or one file; a file that cannot be read has a row of its own saying why. File (its name and, locally, its folder; the first and last names otherwise), Daily variables, Grid, Dates, Calendar, Size, and Header (#293), which opens the first file's ncdump -h (a page of its own, or a dialog with gridded.js). Context: file_groups (inspection.group_files, each with its file's number), local, run. {% endcomment %}
{% for group in file_groups %} {% if group.ok %} {% else %} {% endif %} {% endfor %}
{% translate "The files Climpact has read: a row for each variable's files" %}
{% translate "File" %} {% translate "Daily variables" %} {% translate "Grid" %} {% translate "Dates" %} {% translate "Calendar" %} {% translate "Size" %} {% translate "Header" %}
{% if group.count > 1 %}
{% blocktranslate count counter=group.count with first=group.first_year last=group.last_year trimmed %}{{ counter }} file, {{ first }}–{{ last }}{% plural %}{{ counter }} files, {{ first }}–{{ last }}{% endblocktranslate %}
    {% for f in group.files %}
  1. {{ f.name }} {% blocktranslate with first=f.first last=f.last %}{{ first }} → {{ last }}{% endblocktranslate %}
  2. {% endfor %}
{% if local and run.source == "path" %}{{ group.folder_label }} {% else %}{% blocktranslate asvar ends with first=group.head.name last=group.tail.name %}{{ first }} … {{ last }}{% endblocktranslate %}{{ ends }}{% endif %} {% else %} {{ group.head.name }} {% if local and run.source == "path" %}{{ group.folder_label }}{% endif %} {% endif %}
{{ group.variables|join:", " }} {% blocktranslate with ny=group.head.ny nx=group.head.nx %}{{ ny }} × {{ nx }}{% endblocktranslate %} {% blocktranslate with first=group.first last=group.last %}{{ first }} → {{ last }}{% endblocktranslate %} {{ group.head.calendar }} {{ group.size|filesizeformat }} {% translate "Header" %} {% blocktranslate with name=group.head.name %}of {{ name }}{% endblocktranslate %}
{{ group.head.name }}{% if local and run.source == "path" %}{{ group.folder_label }}{% endif %} {% icon "error" %}{% translate "Cannot be used:" %} {{ group.head.problem }}