{{define "task_list"}} {{$workflow := .Workflow}}
State | Name | Started | Updated | Result | Actions | |
---|---|---|---|---|---|---|
|
{{if .Error.Valid}}
|
{{.Name}} | {{.CreatedAt.UTC.Format "Mon Jan _2 2006 15:04:05"}} | {{.MostRecentUpdate.UTC.Format "Mon Jan _2 2006 15:04:05"}} | {{if .ApprovedAt.Valid}} Approved {{else}} {{$resultDetail.Kind}} {{end}} |
{{if .Error.Valid}}
|
{{if .Error.Valid}}
{{- .Error.Value -}}
{{end}}
{{if .ApprovedAt.Valid}}
{{- printf "Approved at: %s" (.ApprovedAt.Value.UTC.Format "2006/01/02 15:04:05") -}}
{{end}}
{{range $log := index $.TaskLogs .Name}}
{{- printf "%s %s" ($log.CreatedAt.UTC.Format "2006/01/02 15:04:05") $log.Body -}}
{{end}}
{{if and .Result.Valid (ne .Result.String "null")}}
{{- .Result.String -}}
{{end}}
|
{{with $resultDetail}} {{template "itemResult" $resultDetail}} {{end}} |
{{.String}}