{% load i18n ui %}{% comment %} The overview's run status line and Stations table (#234, the Calculate board), polled by htmx (outerHTML swap) while stations are checked or calculated: views_workspace. workspace_progress returns this block alone. Context: rows (stations.overview.rows), status (overview.status_line, or None), polling, delay, page, space; each row's "Copy…" (Copy to workspace…, #241, row.copy_url) in the last column; and Trends across stations (#238, stations/_trends.html: views_workspace.trends_context), which waits while a station is calculated and so comes in with the last poll. {% endcomment %}
{% if status %}

{{ status.head }}{% if status.rest %} {{ status.rest }}{% endif %}

{% if status.tone == "running" %}{% endif %}
{% if status.links %} {% endif %}
{% endif %}

{% translate "Stations" %}

{% if polling %}{% translate "Rows update as each station finishes. Indices open once a station is done." %}{% else %}{% translate "Select a station to open its Quality and Indices." %}{% endif %}

{% for row in rows %} {% endfor %}
{% translate "Station" %} {% translate "Lat, lon" %} {% translate "Period" %} {% translate "Missing" %} {% translate "Quality" %} {% translate "Indices" %} {% translate "Significant" %} {% translate "Actions" %}
{{ row.name }} {{ row.coordinates }} {{ row.period }} {{ row.missing }} {% if row.quality.verdict %}{{ row.quality.label }}{% if row.quality.count %}{{ row.quality.count_label }}{% endif %}{% elif row.quality.state == "checking" %}{{ row.quality.label }}{% else %}{{ row.quality.label }}{% endif %} {% if row.indices.state == "failed" and row.indices.error %}{% blocktranslate with error=row.indices.error %}Failed: {{ error }}{% endblocktranslate %}{% else %}{{ row.indices.label }}{% endif %} {% if row.indices.percent is not None %}{% endif %} {% if row.indices.fix_url %}{{ row.indices.fix_label }} {% blocktranslate with name=row.name %}({{ name }}){% endblocktranslate %}{% endif %} {{ row.significant_label }} {% if row.copy_url %}{% translate "Copy…" %} {% blocktranslate with name=row.name %}{{ name }} to another workspace{% endblocktranslate %}{% endif %}
{% if trends or trends_waiting %}{% include "stations/_trends.html" %}{% endif %}