@@ -33,9 +33,9 @@ <h4 class="WorkflowList-sectionTitle">Tasks</h4>
33
33
< thead >
34
34
< tr class ="TaskList-item TaskList-itemHeader ">
35
35
< th class ="TaskList-itemHeaderCol TaskList-itemExpand "> </ th >
36
- < th class ="TaskList-itemHeaderCol TaskList-itemStatus " > Status </ th >
36
+ < th class ="TaskList-itemHeaderCol TaskList-itemState " > State </ th >
37
37
< th class ="TaskList-itemHeaderCol TaskList-itemName "> Name</ th >
38
- < th class ="TaskList-itemHeaderCol TaskList-itemCreated "> Started</ th >
38
+ < th class ="TaskList-itemHeaderCol TaskList-itemStarted "> Started</ th >
39
39
< th class ="TaskList-itemHeaderCol TaskList-itemUpdated "> Updated</ th >
40
40
< th class ="TaskList-itemHeaderCol TaskList-itemResult "> Result</ th >
41
41
</ tr >
@@ -52,13 +52,19 @@ <h4 class="WorkflowList-sectionTitle">Tasks</h4>
52
52
< img class ="TaskList-itemExpandControl " alt ="unfold less " src ="{{baseLink "/static/images/expand_more_black_24dp.svg"}}" />
53
53
</ span >
54
54
</ td >
55
- < td class ="TaskList-itemCol TaskList-itemStatus ">
56
- {{$task.Finished}}
55
+ < td class ="TaskList-itemCol TaskList-itemState ">
56
+ {{if $task.Error.Valid}}
57
+ < img class ="TaskList-itemStateIcon " alt ="error " src ="{{baseLink "/static/images/error_red_24dp.svg"}}" />
58
+ {{else if $task.Finished}}
59
+ < img class ="TaskList-itemStateIcon " alt ="finished " src ="{{baseLink "/static/images/check_circle_green_24dp.svg"}}" />
60
+ {{else}}
61
+ < img class ="TaskList-itemStateIcon " alt ="pending " src ="{{baseLink "/static/images/pending_yellow_24dp.svg"}}" />
62
+ {{end}}
57
63
</ td >
58
64
< td class ="TaskList-itemCol TaskList-itemName ">
59
65
{{$task.Name}}
60
66
</ td >
61
- < td class ="TaskList-itemCol TaskList-itemCreated ">
67
+ < td class ="TaskList-itemCol TaskList-itemStarted ">
62
68
{{$task.CreatedAt.UTC.Format "Mon Jan _2 2006 15:04:05"}}
63
69
</ td >
64
70
< td class ="TaskList-itemCol TaskList-itemUpdated ">
@@ -70,6 +76,11 @@ <h4 class="WorkflowList-sectionTitle">Tasks</h4>
70
76
</ tr >
71
77
< tr class ="TaskList-itemLogsRow ">
72
78
< td class ="TaskList-itemLogs " colspan ="6 ">
79
+ {{if $task.Error.Valid}}
80
+ < div class ="TaskList-itemLogLine TaskList-itemLogLineError ">
81
+ < code class ="TaskList-errorBody "> {{$task.Error.Value}}</ code >
82
+ </ div >
83
+ {{end}}
73
84
{{range $log := $.Logs $workflow.ID $task.Name}}
74
85
< div class ="TaskList-itemLogLine ">
75
86
{{$log.CreatedAt.UTC.Format "2006/01/02 15:04:05"}}
0 commit comments