Times are formatted by `humantime` and sizes by `indicatif`, which were already dependencies, instead of by our own code, and the web app's copy of the time format is gone. Sizes now have two decimals. The latest progress of each phase, and how each node is getting on, move from `runs::Run` to `progress::Phases`, so `slop` can use them too. A phase's counts and what's running now are written once, in `Progress`, for its line, its bar in `slop` and the web app. Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.3 KiB
HTML
25 lines
1.3 KiB
HTML
{%- import "macros.html" as m -%}
|
|
<h2>Progress</h2>
|
|
<p class="meta">Running for {{ self::elapsed(run.elapsed()) }}</p>
|
|
{% for phase in run.phases.overall() %}
|
|
<div class="phase {{ self::state_class(phase) }}">
|
|
<p class="phase-title"><strong>{{ phase.title() }}</strong> <span class="meta">{{ self::elapsed(phase.elapsed) }}</span></p>
|
|
{% call m::meter(phase) %}{% endcall %}
|
|
{% let counted = phase.counted(false) %}
|
|
{% if !counted.is_empty() %}<p class="meta">{{ counted }}</p>{% endif %}
|
|
{% if !phase.counts.current.is_empty() %}<p class="meta current">Now: {% for name in phase.counts.current %}<code>{{ name }}</code>{% if !loop.last %}, {% endif %}{% endfor %}</p>{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
{% let nodes = run.phases.nodes() %}
|
|
{% if !nodes.is_empty() %}
|
|
<div class="scroll"><table class="nodes">
|
|
<thead><tr><th>Node</th><th>State</th><th>Copy</th><th>Time</th></tr></thead>
|
|
<tbody>
|
|
{% for row in nodes %}
|
|
<tr><td><code>{{ row.node }}</code></td><td><span class="outcome {{ row.tone }}">{{ row.state }}</span></td>
|
|
<td class="copy">{% if let Some(copy) = row.copy %}{% call m::meter(copy) %}{% endcall %}{% let counted = copy.counted(false) %}{% if !counted.is_empty() %}<span class="meta">{{ counted }}</span>{% endif %}{% endif %}</td>
|
|
<td>{{ self::elapsed(row.latest.elapsed) }}</td></tr>
|
|
{% endfor %}
|
|
</tbody></table></div>
|
|
{% endif %}
|