mirror of https://github.com/rancher/ui.git
57 lines
1.6 KiB
Handlebars
57 lines
1.6 KiB
Handlebars
<tr class="main-row">
|
|
<td class="row-check" valign="middle" style="padding-top: 2px;">
|
|
{{check-box nodeId=model.id}}
|
|
</td>
|
|
<td data-title="{{dt.state}}" class="state">
|
|
{{badge-state model=model}}
|
|
</td>
|
|
<td data-title="{{dt.name}}">
|
|
{{#link-to-external 'authenticated.cluster' model.id}}{{model.displayName}}{{/link-to-external}}
|
|
</td>
|
|
<td data-title="{{dt.provider}}">
|
|
{{#if model.version.gitVersion}}
|
|
<small>{{model.displayProvider}}</small>
|
|
<p class="text-small text-muted m-0">{{model.version.gitVersion}}</p>
|
|
{{else}}
|
|
{{model.displayProvider}}
|
|
{{/if}}
|
|
</td>
|
|
{{#if (eq model.state "inactive")}}
|
|
<td colspan="4" class="text-center">
|
|
{{t 'clusterRow.noHosts'}}
|
|
</td>
|
|
{{else}}
|
|
<td data-title="{{dt.hosts}}">
|
|
{{model.machines.length}}
|
|
</td>
|
|
<td data-title="{{dt.cpu}}">
|
|
{{#if model.cpuUsage}}
|
|
<small>{{model.cpuUsage}}</small>
|
|
<p class="text-small text-muted m-0">{{model.cpuPercent}}</p>
|
|
{{else}}
|
|
<span class="text-muted">
|
|
{{t 'generic.na'}}
|
|
</span>
|
|
{{/if}}
|
|
</td>
|
|
|
|
<td data-title="{{dt.memory}}">
|
|
{{#if model.memoryUsage}}
|
|
<small>{{model.memoryUsage}}</small>
|
|
<p class="text-small text-muted m-0">{{model.memoryPercent}}</p>
|
|
{{else}}
|
|
<span class="text-muted">
|
|
{{t 'generic.na'}}
|
|
</span>
|
|
{{/if}}
|
|
</td>
|
|
{{/if}}
|
|
<td data-title="{{dt.actions}} "class="actions">
|
|
{{action-menu model=model}}
|
|
</td>
|
|
</tr>
|
|
|
|
{{#if model.showTransitioningMessage}}
|
|
{{error-sub-row fullColspan=fullColspan model=model}}
|
|
{{/if}}
|