Group what the mirror holds by model

Each model is a heading - how many versions, how much disk, and whether
one is downloading, failed or in use - with its versions beneath it.
Sorted by state alone, versions of one model were scattered down the
table around unrelated downloads. A model with a download or a failure
still comes first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-09-28 23:39:44 +02:00
1 parent 7c5938effe
commit 06ea02dd57
4 files changed
+89 -3

No files matched your search

+10 -3
View File
@@ -31,9 +31,15 @@ reachable from this machine.</p>
<h2>What the mirror holds</h2>
{{if .Rows}}
<table class="compact held">
<tr><th>Model</th><th>Files</th><th class="num">Size</th><th>Runs</th><th></th></tr>
{{range .Rows}}<tr>
<td><strong>{{.Model}}</strong> <span class="opt">{{.Version}}</span></td>
<tr><th>Version</th><th>Files</th><th class="num">Size</th><th>Runs</th><th></th></tr>
{{range .Groups}}
<tr class="model-group"><td colspan="5"><strong>{{.Model}}</strong>
<span class="opt">{{len .Rows}} version{{if gt (len .Rows) 1}}s{{end}} · {{bytes .Bytes}}</span>
{{if .Fetching}}<span class="tag new">downloading</span>{{end}}
{{if .Failed}}<span class="tag bad">failed</span>{{end}}
{{if .InUse}}<span class="tag">in use</span>{{end}}</td></tr>
{{range .Rows}}<tr class="model-version">
<td><code>{{.Version}}</code></td>
<td class="file" title="{{.File}}{{if .SHA256}} · sha256 {{.SHA256}}{{end}}">
{{if gt .Files 1}}{{.Files}} files{{else}}<code>{{.File}}</code>{{end}}</td>
<td class="num">
@@ -163,6 +169,7 @@ job by name if you would rather pin it.</p>
</td></tr>
{{end}}
{{end}}
{{end}}
</table>
<p class="note">“copy address” gives what a catalog entry's <code>source</code>
should say — the file, or for a version of several files the directory, with its