{% extends "base.html" %} {% load i18n static ui help %} {% block title %}{% blocktranslate with name=analysis.station_name %}Indices: {{ name }}{% endblocktranslate %}{% endblock %} {% block head %}{% include "stations/_open_sheet.html" %}{% endblock %} {% block content %}
{% comment %}The page's two actions in the workspace header (#200): the zip, primary, and the sector comparison. Every other file is on the Files tab (#176). "Edit inputs" on the provenance line (#263).{% endcomment %} {% include "stations/_workspace.html" with heading=True actions="stations/_results_actions.html" edit_inputs=True %} {% comment %}No Inputs panel beside the section, so the table and its detail have the width (#236; the panel is beside the section on the other pages, #198): "Edit inputs" on the provenance line opens its sheet, and on narrow pages the Inputs bar under the tabs (#263). Without JavaScript the panel shows above the section. The rail and the detail pane reach the window's edges; the notes above them and the line below keep the page's margins.{% endcomment %}
{% include "stations/_inputs.html" %}
{% comment %}Out of date after a change (#179): the banner says what changed, with the new run's progress, or "Recalculate". The results stay below it until the new ones are ready.{% endcomment %} {% if stale %} {% if stale.replacing %} {% translate "Results are out of date. Recalculating" as stale_title %}{% translate "The results below are from before the change. The new results replace them when they are ready." as stale_note %} {% include "components/stale_banner.html" with id="results-stale" title=stale_title changes=stale.changes note=stale_note updating=True body="stations/_recalculation.html" %} {% elif recalculation %} {% translate "Results are out of date. The recalculation failed" as stale_title %}{% translate "The results below are from before the change." as stale_note %} {% include "components/stale_banner.html" with id="results-stale" title=stale_title changes=stale.changes note=stale_note body="stations/_recalculation.html" %} {% else %} {% translate "Results are out of date" as stale_title %}{% translate "The results below are from before the change. Recalculate to bring them up to date." as stale_note %} {% include "components/stale_banner.html" with id="results-stale" title=stale_title changes=stale.changes note=stale_note body="stations/_recalculate_form.html" %} {% endif %} {% elif recalculation %}

{% if recalculation.job.status == "failed" %}{% translate "The recalculation failed" %}{% else %}{% translate "Recalculating" %}{% endif %}

{% include "stations/_recalculation.html" %}

{% if recalculation.job.is_finished %}{% translate "The results below use the previous settings." %}{% else %}{% translate "The results below use the previous settings. The new results replace them when they are ready." %}{% endif %}

{% endif %} {% if from_batch %} {% translate "These results are from the batch run. Change the index settings to calculate them here." as batch_note %} {% include "components/alert.html" with kind="info" title="" message=batch_note %} {% endif %} {% if not rows %} {% comment %}A run that made no index table, every index skipped (#268): no rail, table or pane: the answer first, the list of what could not be calculated under it, and the way on, replacing the file.{% endcomment %} {% translate "No index to show" as empty_title %}{% if run.skipped %}{% translate "The calculation made no index table. The list below says why." as empty_text %}{% else %}{% translate "The calculation made no index table." as empty_text %}{% endif %}{% translate "Replace the file" as empty_action %} {% include "components/empty_state.html" with icon="table" level=2 title=empty_title text=empty_text action_label=empty_action action_href=input_urls.file action_sheet="file" %} {% endif %} {% if run.skipped %}
{% icon "warning" %}

{% blocktranslate count counter=run.skipped|length trimmed %}{{ counter }} index could not be calculated{% plural %}{{ counter }} indices could not be calculated{% endblocktranslate %}

{% translate "All their values are missing, so they have no table:" %}

    {% for item in run.skipped %}
  • {% blocktranslate with name=item.name tables=item.tables_text reason=item.reason %}{{ name }} ({{ tables }}): {{ reason }}{% endblocktranslate %}
  • {% endfor %}
{% endif %}
{% if rows %} {% url 'stations:results' analysis.workspace_id analysis.slug as indices_action %} {% include "stations/_indices.html" with action=indices_action %} {% endif %} {% if analysis.expires_at %}

{% icon "lock" %}{% blocktranslate with date=analysis.expires_at|date:"j F Y" %}Kept until {{ date }}. This page's address works until then.{% endblocktranslate %}

{% endif %}
{% include "stations/_input_sheets.html" %} {% endblock %}