{% extends "base.html" %} {% load i18n static ui help %} {% comment %} The Files section (#79, #176): every file of the station, grouped. The zip and the report, the summary files, the quality-control files, the plots, the sector comparison, each index (one file group per section) and any other file of the run. Other pages link here instead of listing files (DESIGN.md, "Don't offer downloads everywhere"). Before the indices are calculated it holds the quality-control files alone. Context from views_downloads. {% endcomment %} {% block title %}{% blocktranslate with name=analysis.station_name %}Files: {{ name }}{% endblocktranslate %}{% endblock %} {% block content %}
{% if source %}{% translate "Every file of this station. The report is the easiest to read and share." %}{% else %}{% translate "The files of the quality checks. The files of the indices appear here when you calculate them." %}{% endif %}
{% if analysis.expires_at or from_batch %}{% if analysis.expires_at %}{% blocktranslate with date=analysis.expires_at|date:"j F Y" %}Kept until {{ date }}. The links work until then.{% endblocktranslate %}{% endif %}{% if analysis.expires_at and from_batch %} {% endif %}{% if from_batch %}{% translate "These are this station's files from the batch run." %}{% endif %}
{% endif %}{{ main.zip.note }}
{% comment %}Out of date (#223): the old run's zip, secondary, until the new one is ready. R's zip with the provenance file added (stations:station_zip, #239).{% endcomment %} {% url 'stations:station_zip' analysis.workspace_id analysis.slug as zip_url %}{% if stale_results %}{% blocktranslate with size=main.zip.size|filesizeformat asvar zip_label %}Download all (zip, {{ size }}, out of date){% endblocktranslate %}{% include "components/button.html" with label=zip_label href=zip_url icon="download" variant="secondary" %}
{% else %}{% blocktranslate with size=main.zip.size|filesizeformat asvar zip_label %}Download all (zip, {{ size }}){% endblocktranslate %}{% include "components/button.html" with label=zip_label href=zip_url icon="download" %}
{% endif %} {% else %}{% translate "Not made. The zip was switched off in the settings." %}
{% if input_urls.settings %}{% endif %} {% endif %}{{ main.report.note }}
{% url 'jobs:file' job.pk main.report.path as report_url %}{% blocktranslate with size=main.report.size|filesizeformat asvar report_label %}Download the report (PDF, {{ size }}){% endblocktranslate %}{% include "components/button.html" with label=report_label href=report_url icon="download" variant="secondary" %}
{% else %}{% translate "Not made. The report was switched off, or this calculation is older than the report." %}
{% if input_urls.settings %}{% endif %} {% endif %}| {% translate "File" %} | {% translate "Contents" %} | {% translate "Download" %} |
|---|---|---|
| {{ d.label }} | {{ d.note }} | {% url 'jobs:file' job.pk d.path as d_href %}{% include "components/download_link.html" with d=d href=d_href %} |
{% translate "What each check found, and the days missing per year, as CSV." %}{% if quality.job != job and source %} {% translate "The zip of the calculation has the same files." %}{% endif %}
{% if quality.zip %}{% url 'jobs:file' quality.job.pk quality.zip.path as d_href %}{% include "components/download_link.html" with d=quality.zip href=d_href %}
{% endif %} {% if quality.files %}| {% translate "Check" %} | {% translate "File" %} | {% translate "Download" %} |
|---|---|---|
| {{ d.label }} | {{ d.name }} | {% url 'jobs:file' quality.job.pk d.path as d_href %}{% include "components/download_link.html" with d=d href=d_href %} |
{% url 'jobs:file' job.pk main.all_plots.path as d_href %}{% include "components/download_link.html" with d=main.all_plots href=d_href %} {% translate "All the plots in one PDF." %}
{% else %}{% translate "Not made. The plots were switched off in the settings." %}
{% endif %}{% url 'jobs:file' sector.job.pk sector.zip.path as d_href %}{% include "components/download_link.html" with d=sector.zip href=d_href %}
{% endif %} {% if sector.files %}| {% translate "File" %} | {% translate "Download" %} |
|---|---|
| {{ d.label }} | {% url 'jobs:file' sector.job.pk d.path as d_href %}{% include "components/download_link.html" with d=d href=d_href %} |
{% translate "A table (CSV) per index and a plot (PNG) per series." %}{% if not plots_made %} {% translate "The plots were switched off in the settings." %}{% endif %}
| {% translate "Index" %} | {% translate "Series" %} | {% translate "Table" %} | {% translate "Plot" %} |
|---|---|---|---|
| {% include "components/index_name.html" with code=item.card.code name=item.card.title only %} | {% endif %}{{ row.series.label }} {{ row.series.name }} | {% if row.csv %}{% url 'jobs:file' job.pk row.csv.path as d_href %}{% include "components/download_link.html" with d=row.csv href=d_href %}{% else %}{% translate "in the index's table" %}{% endif %} | {% if row.png %}{% url 'jobs:file' job.pk row.png.path as d_href %}{% include "components/download_link.html" with d=row.png href=d_href %}{% else %}{% translate "none" %}{% endif %} |
| {% translate "File" %} | {% translate "Download" %} |
|---|---|
| {{ d.label }} | {% url 'jobs:file' job.pk d.path as d_href %}{% include "components/download_link.html" with d=d href=d_href %} |
{% translate "Every file of this calculation, as a list" %}
{% else %}{% translate "Calculate the indices" %} {% icon "arrow-right" %}
{% endif %}