94441a5371
- Surface UpdateAvailable + TargetVersion on the dashboard host row, the host_chrome header, and the JSON Host shape. - New host_update_chip partial renders an amber out-of-date pill next to the agent-version display when the host's agent trails the server. - Host detail right-rail gains an admin-only Update agent button (disabled when host is offline or already updating). - New .update-chip and .btn-amber CSS tokens; tailwind output refreshed.
12 lines
513 B
HTML
12 lines
513 B
HTML
{{/*
|
|
host_update_chip — small amber chip rendered when the agent version
|
|
on a host is behind the server's. Expects:
|
|
.UpdateAvailable bool
|
|
.TargetVersion string
|
|
.Host store.Host (for AgentVersion)
|
|
Hidden entirely when UpdateAvailable is false.
|
|
*/}}
|
|
{{define "host_update_chip"}}
|
|
{{if .UpdateAvailable}}<span class="update-chip" title="Agent at {{.Host.AgentVersion}}; server at {{.TargetVersion}}">out of date · {{.Host.AgentVersion}} → {{.TargetVersion}}</span>{{end}}
|
|
{{end}}
|