{{define "node_logs"}}
{{if .Follow}}{{end}}{{if eq .Source "agent"}}the agent's log{{else}}output of engine {{.Source}}{{end}} · last {{.Count}} lines
{{- $d := . -}} {{range .Sources}}{{.}}{{else}}>{{.}}{{end}} {{end}}
{{range .Counts}}{{.}} {{end}}lines · {{if .Follow}}stop following{{else}}follow (refresh every 5s){{end}}
{{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}}Nothing logged yet.
{{end}}