{{define "width"}}wide{{end}} {{define "title"}}build {{.Build.Number}} · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}} {{define "content"}} {{if .Notice}}{{end}}

Build {{.Build.Number}} {{.Build.Status}}

{{if and .CanWrite (or (eq .Build.Status "pending") (eq .Build.Status "running"))}}
{{end}}

{{.Build.Job}} on {{.Build.Ref}} · {{printf "%.10s" .Build.SHA}} · queued {{when .Build.CreatedAt}}{{if .Build.FinishedAt}} · finished {{when .Build.FinishedAt}}{{with .Duration}} · ran {{.}}{{end}}{{end}}{{if .Failed}} · Jump to failure{{end}}

{{if .Live}}

Live: the log streams here until the build ends. If it stops without a “build finished” line, reload to pick it up again. Show it without updates

{{.Log}}
{{else if .Steps}}{{$total := len .Build.Steps}}{{range .Steps}}
{{if .N}}step {{.N}}/{{$total}} {{.Head}}{{else}}setup{{end}}{{if .Failed}} failed{{end}}
{{.Text}}
{{end}} {{else if .Log}}
{{.Log}}
{{else}}

no log yet

{{end}} {{end}}