{{define "updatestatus"}}

{{t "update.title"}}

{{if .Update}}

{{t "update.when"}}

{{t "update.sha"}} {{.Update.SHA}}

{{t "update.result"}} {{.Update.ResultLabel}}

{{if .Update.Error}}

{{.Update.Error}}

{{end}} {{else}}

{{t "update.none"}}

{{end}}
{{end}} {{define "info"}} {{template "layout-start" .}}

{{t "title.info"}}

{{t "info.lead"}}

{{.Spec.Example}}
{{range .Spec.Sections}}

{{.Title}}

{{if .Intro}}

{{.Intro}}

{{end}} {{if eq .Kind "keywords"}} {{range .Items}}{{end}}
{{t "info.col.keyword"}}{{t "info.col.meaning"}}
{{.Name}}{{.Summary}}
{{else if eq .Kind "variables"}} {{range .Variables}}{{end}}
{{t "info.col.keyword"}}{{t "info.col.where"}}{{t "info.col.meaning"}}
{{.Name}}{{.Where}}{{.Summary}}
{{else if eq .Kind "list"}} {{else if eq .Kind "presets"}} {{range .Presets}} {{end}}
{{t "info.col.name"}}{{t "info.col.base"}}{{t "info.col.tools"}}
{{.Name}} {{.From}}{{if .Runtime}}
{{.Runtime}}
{{end}}
{{if .Tools}}{{range $i, $tool := .Tools}}{{if $i}}, {{end}}{{$tool}}{{end}}{{else}}{{t "info.presets.mapped"}}{{end}}
{{end}} {{end}} {{if .ShowUpdate}}{{template "updatestatus" .}}{{end}}

{{t "info.api.title"}}

{{t "info.api.lead"}}

{{t "info.api.auth"}}

{{t "info.api.ssh"}}

{{t "info.api.spec"}}

{{t "info.sec.webhooks"}}

{{t "info.wh.lead"}}

{{t "info.wh.spec"}}

{{.HookDoc}}
{{template "layout-end" .}} {{end}}