Show the log in the page over the site while updating or upgrading

The Update page's overlay carries the update's log; the Packages page gets
an overlay too, named after the step that runs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 12:10:58 +01:00
co-authored by Claude Sonnet 5.5
parent d6de7781fe
commit 8fe0a72897
5 changed files with 35 additions and 5 deletions
+3 -2
View File
@@ -11,10 +11,11 @@
{{if $d.Status.Running}}
<div class="upload-overlay" role="dialog" aria-modal="true">
<div class="upload-card">
<div class="upload-card wide">
<h2>Updating…</h2>
<progress max="100" value="{{$d.Progress}}"></progress>
<p>{{$d.Step}}</p>
{{if $d.Status.Log}}<pre class="log">{{$d.Status.Log}}</pre>{{end}}
<p class="muted">This takes a few minutes. The page reloads when it is done; the web UI restarts when the new
version is switched on, and you log in again.</p>
</div>
@@ -62,7 +63,7 @@
<code>nix run .#release</code> writes. The data is signed, so plain HTTP works too.</p>
</section>
{{if $d.Status.Log}}
{{if and $d.Status.Log (not $d.Status.Running)}}
<section>
<h2>Last update{{if $d.Status.Result}} — {{if eq $d.Status.Result "success"}}succeeded{{else}}failed ({{$d.Status.Result}}){{end}}{{end}}</h2>
<pre class="log">{{$d.Status.Log}}</pre>