mirror of https://github.com/rancher/ui.git
58 lines
2.0 KiB
Handlebars
58 lines
2.0 KiB
Handlebars
{{#if topLevel}}
|
|
<tr>
|
|
<td class="clip">
|
|
{{#if checkProcessHandlerExecutions }}
|
|
<span {{action 'expand'}}>
|
|
<i class="fa hand {{if expanded 'fa-minus-square' 'fa-plus-square'}}"></i>
|
|
</span>
|
|
{{/if}}
|
|
<span title={{execution.processName}}>{{execution.processName}}</span>
|
|
</td>
|
|
<td class="clip"><span title={{execution.resourceType}}>{{execution.resourceType}}:{{execution.resourceId}}</span></td>
|
|
<td>{{execution.exitReason}}</td>
|
|
{{#if execution.startTime}}
|
|
<td>{{date-from-now execution.startTime}}</td>
|
|
{{else}}
|
|
<td></td>
|
|
{{/if}}
|
|
{{#if execution.stopTime}}
|
|
<td>{{date-from-now execution.stopTime}}</td>
|
|
{{else}}
|
|
<td></td>
|
|
{{/if}}
|
|
<td>{{run-time execution.startTime execution.stopTime}}</td>
|
|
</tr>
|
|
{{else}}
|
|
{{#if shouldExpand}}
|
|
<tr>
|
|
<td class="clip">
|
|
<i class="fa fa-level-down indent-{{depth}}"></i>
|
|
{{#if checkProcessHandlerExecutions }}
|
|
<span {{action 'expand'}}>
|
|
<i class="fa hand {{if expanded 'fa-minus-circle' 'fa-plus-circle'}}"></i>
|
|
</span>
|
|
{{/if}}
|
|
<span title={{execution.processName}}>{{execution.processName}}</span>
|
|
</td>
|
|
<td class="clip"><span title={{execution.resourceType}}>{{execution.resourceType}}:{{execution.resourceId}}</span></td>
|
|
<td>{{execution.exitReason}}</td>
|
|
{{#if execution.startTime}}
|
|
<td>{{date-from-now execution.startTime}}</td>
|
|
{{else}}
|
|
<td></td>
|
|
{{/if}}
|
|
{{#if execution.stopTime}}
|
|
<td>{{date-from-now execution.stopTime}}</td>
|
|
{{else}}
|
|
<td></td>
|
|
{{/if}}
|
|
<td>{{run-time execution.startTime execution.stopTime}}</td>
|
|
</tr>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{#if checkProcessHandlerExecutions }}
|
|
{{#each execution.processHandlerExecutions as |processExe|}}
|
|
{{process-execution-handler-rows execution=processExe shouldExpand=expanded shouldExpandChildren=expandAll nodeDepth=depth}}
|
|
{{/each}}
|
|
{{/if}}
|