{{define "app_deployments"}}{{template "top" .}} {{if .Flash}}{{end}} {{if .FlashErr}}{{end}} {{template "appnav" .}} {{template "accountreviewbanner" .}}

{{.DeploymentsCopy.Title}}

{{if .DeploymentTargets}}
{{range .DeploymentTargets}} {{end}}
Channel{{.DeploymentsCopy.Target}}{{.DeploymentsCopy.Observed}}Instances
{{.Channel}} {{if .TargetErr}}Can't tell right now{{else if .Target}}{{.Target}}{{else}}{{$.DeploymentsCopy.NoTarget}}{{end}} {{range .Versions}}
{{.Count}} × {{.Version}}
{{end}}{{if .Unknown}}
{{.Unknown}} × —
{{end}}{{if eq .Total 0}}—{{end}}
{{.Total}} {{$.DeploymentsCopy.Instances}} {{if and $.CanPromote .HasHistory (not .TargetErr) (or $.Detail.Pipeline $.IsOwner (ne .Channel "stable"))}}
{{end}}
{{else}}

{{.DeploymentsCopy.NoChannels}}

{{end}} {{template "pending" .}} {{template "bottom" .}}{{end}}