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>
18 lines
578 B
HTML
18 lines
578 B
HTML
{%- import "macros.html" as m -%}
|
|
<div id="pending">
|
|
{% if entries.is_empty() %}
|
|
<p class="empty">Nothing is waiting for an answer.</p>
|
|
{% endif %}
|
|
{% for entry in entries %}
|
|
{% call m::card(entry, csrf, false) %}{% endcall %}
|
|
{% endfor %}
|
|
{% if !leases.is_empty() %}
|
|
<h2>Active leases</h2>
|
|
<table><thead><tr><th>Requester</th><th>Scope</th><th>Left</th></tr></thead><tbody>
|
|
{% for (requester, scope, seconds) in leases %}
|
|
<tr><td>{{ requester }}</td><td><code>{{ scope }}</code></td><td>{{ self::elapsed(**seconds) }}</td></tr>
|
|
{% endfor %}
|
|
</tbody></table>
|
|
{% endif %}
|
|
</div>
|