The cluster page and the console say which picture and 3D models are here, and add them
A site whose catalog had no flux-schnell or triposr showed no Images or 3D page, and nothing said they were one click away. The cluster page now has a Pictures and 3D models card under the models: each preset, what it makes, the classes of card here it fits, whether and by whom it was added, and why the leader has not added it by itself; an Add button, which says first when it would install ComfyUI on the GPU nodes and restart the control planes; and the switch for presets.auto. The console's models screen shows the same under its table: A adds one, asking first in the same case, and P turns automatic adding on or off. `ctl model add PRESET` and `ctl model presets` go through the presets API, so the control plane keeps who added one, and `ctl model presets auto on|off` flips the setting; against a control plane from before, add sends the entry as v0.14.4 did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e0adcc5c4e
commit
85a2bdd0e3
16 files changed
+746
-21
No files matched your search
@@ -163,6 +163,34 @@ document.querySelectorAll("form.build-choice select").forEach(function (s) {
|
||||
{{end}}</table>
|
||||
{{else}}<p class="empty">{{t "dash.models.empty"}}</p>{{end}}
|
||||
|
||||
{{with .Presets}}
|
||||
<h3 id="presets">{{t "dash.presets.title"}}</h3>
|
||||
<p class="note">{{t "dash.presets.about"}}</p>
|
||||
<table class="rows"><tr><th>{{t "dash.col.model"}}</th><th>{{t "dash.presets.makes"}}</th><th>{{t "dash.presets.card"}}</th><th>{{t "dash.presets.licence"}}</th><th>{{t "dash.presets.fits"}}</th><th>{{t "dash.presets.state"}}</th><th></th></tr>
|
||||
{{range .Rows}}<tr>
|
||||
<td><code>{{.Name}}</code></td>
|
||||
<td title="{{.Description}}">{{.Makes}}</td>
|
||||
<td>{{.Card}}</td>
|
||||
<td>{{.Licence}}</td>
|
||||
<td>{{or .Fits (t "dash.presets.fits_none")}}</td>
|
||||
{{/* Why the leader does not add it itself is the control plane's, in English. */}}
|
||||
<td{{if .Declined}} class="note"{{end}}>{{or .State "—"}}{{with .Blocked}} <span class="note">({{.}})</span>{{end}}</td>
|
||||
<td>{{if and $.Menu.CSRF (not .InCatalog)}}
|
||||
<form method="post" action="/admin/presets/{{.Name}}" class="inline">
|
||||
<input type="hidden" name="csrf" value="{{$.Menu.CSRF}}">
|
||||
<button type="submit"{{if .AddsComfyUI}} title="{{t "dash.presets.adds_comfyui"}}"{{end}}>{{if .Declined}}{{t "dash.presets.add_again"}}{{else}}{{t "dash.presets.add"}}{{end}}</button>
|
||||
</form>{{if .AddsComfyUI}} <span class="warn">{{t "dash.presets.adds_comfyui"}}</span>{{end}}{{end}}</td>
|
||||
</tr>
|
||||
{{end}}</table>
|
||||
<p>{{if .Auto}}{{t "dash.presets.auto_on"}}{{else}}{{t "dash.presets.auto_off"}}{{end}}
|
||||
{{if $.Menu.CSRF}}
|
||||
<form method="post" action="/admin/presets/auto" class="inline">
|
||||
<input type="hidden" name="csrf" value="{{$.Menu.CSRF}}">
|
||||
<input type="hidden" name="on" value="{{if .Auto}}false{{else}}true{{end}}">
|
||||
<button type="submit">{{if .Auto}}{{t "dash.presets.turn_off"}}{{else}}{{t "dash.presets.turn_on"}}{{end}}</button>
|
||||
</form>{{end}}</p>
|
||||
{{end}}
|
||||
|
||||
{{if .Unplaced}}
|
||||
<h2>{{t "dash.unplaced"}}</h2>
|
||||
{{/* The scheduler's reasons, as it gives them. */}}
|
||||
|
||||
Reference in new issue
Block a user