{{define "node_logs"}} {{if .Follow}}{{end}} llmgw — {{t "logs.title" .Node}}

{{.Node}}

{{if eq .Source "agent"}}{{t "logs.agent"}}{{else}}{{th "logs.engine" .Source}}{{end}} · {{t "logs.last_lines" .Count}}

{{if .OnAdminListener}}{{else}}{{template "nav" .Nav}}{{end}}

{{- $d := . -}} {{range .Sources}}{{.}}{{else}}>{{.}}{{end}}   {{end}}

{{range .Counts}}{{.}} {{end}}{{t "logs.lines"}} · {{if .Follow}}{{t "logs.stop"}}{{else}}{{t "logs.follow"}} {{t "logs.follow_every"}}{{end}}

{{/* An error from the control plane or the node is shown as it came. */}} {{if .Error}}

{{.Error}}

{{end}} {{if .Lines}}
{{range .Lines}}{{.}}
{{end}}
{{/* Newest at the bottom, like a terminal, and scrolled there: the line worth reading is almost always the last one. */}} {{else if not .Error}}

{{t "logs.empty"}}

{{end}}
{{end}}