{{define "content"}}

{{.Service.DisplayName}}

{{if .Error}}

{{.Error}}

{{end}} {{if .Service.ActualDigest}}{{end}} {{if .Service.DesiredRef}}{{end}} {{if .ConfigFiles}}{{end}}
Kind{{.Service.Kind}}
Agent{{if .Service.AgentName}}{{.Service.AgentName}}{{else}}Swarm{{end}}
Image{{shortRef .Service.ActualRef}}
Digest{{.Service.ActualDigest}}
Status{{.Service.Status}}
Desired image{{shortRef .Service.DesiredRef}}
Config files{{range .ConfigFiles}}{{.}}
{{end}}
{{if .Reason}}

Update unavailable: {{.Reason}}.

{{else}}

Pulls the current tag again and redeploys the service.

{{end}}

Update history

{{template "history" .}}
{{end}} {{define "history"}} {{range .Jobs}} {{else}} {{end}}
JobStatusFrom → toRequested byCreatedDuration
#{{.ID}} {{.Status}} {{shortRef .FromRef}} → {{shortRef .ToRef}} {{.RequestedBy}} {{.CreatedAt.Format "2006-01-02 15:04"}} {{duration .}}
No updates yet.
{{end}}