2998deac50
This is mostly a direct application of the ember-angle-brackets-codemod. I manually restored newlines in multi-line component invocations, usually preserving file line length except for now-non-positional link-to @route. I needed to rename task to taskState in some cases to avoid Ember Concurrency naming conflicts.
25 lines
1.1 KiB
Handlebars
25 lines
1.1 KiB
Handlebars
<td data-test-icon class="is-narrow">
|
|
{{#if node.unhealthyDrivers.length}}
|
|
<span class="tooltip text-center" role="tooltip" aria-label="Client has unhealthy drivers">
|
|
{{x-icon "warning" class="is-warning"}}
|
|
</span>
|
|
{{/if}}
|
|
</td>
|
|
<td data-test-client-id><LinkTo @route="clients.client" @model={{node.id}} class="is-primary">{{node.shortId}}</LinkTo></td>
|
|
<td data-test-client-name class="is-200px is-truncatable" title="{{node.name}}">{{node.name}}</td>
|
|
<td data-test-client-composite-status>
|
|
<span class="tooltip" aria-label="{{node.status}} / {{if node.isDraining "draining" "not draining"}} / {{if node.isEligible "eligible" "not eligible"}}">
|
|
<span class="{{compositeStatusClass}}">{{node.compositeStatus}}</span>
|
|
</span>
|
|
</td>
|
|
<td data-test-client-address>{{node.httpAddr}}</td>
|
|
<td data-test-client-datacenter>{{node.datacenter}}</td>
|
|
<td data-test-client-volumes>{{if node.hostVolumes.length node.hostVolumes.length}}</td>
|
|
<td data-test-client-allocations>
|
|
{{#if node.allocations.isPending}}
|
|
...
|
|
{{else}}
|
|
{{node.runningAllocations.length}}
|
|
{{/if}}
|
|
</td>
|