{# The live console: the lower half of the run page's single panel. The whole history is rendered server-side; ``app.js`` only appends what the stream sends and never formats anything itself. The data attributes on this element are the contract between the two: data-stream-url where to open the EventSource data-last-sequence the server's cursor when the page was rendered data-terminal whether the run is already over (from its *status*) A connection resumes from ``max(data-last-sequence, highest data-sequence in the list)``: the attribute is what the server had rendered, the list is what the page actually holds, and the higher of the two is the only cursor that can neither replay nor skip. #} {% from "_event.html" import event_row %}
{# No heading. "Console" named the thing the reader was already looking at, and the counters and the log download moved up beside the controls that act on the run. What is left are the controls that belong to watching the output: where it goes on screen, and whether its end is heard. Sound is on by default and remembered in the browser, like Follow. app.js plays a tone when the stream's final status frame arrives -- rising for a run that succeeded, falling for any other ending -- so it sounds only for a run that ends while this page is open. It is rendered on a finished run's page too, as Follow is: the choice is the reader's, not the run's. #}
    {% for event in events %}{{ event_row(event) }}{% endfor %}
{% if not events %}

No output yet.

{% endif %}