ui/lib/shared/addon/components/node-row/template.hbs

84 lines
1.9 KiB
Handlebars

<tr class="main-row">
<td valign="middle" class="row-check" 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}}" class="clip">
{{#if linkName}}
<a href="{{href-to "host" model.id}}">{{model.displayName}}</a>
{{else}}
{{model.displayName}}
{{/if}}
{{#each model.displayUserLabelStrings as |label|}}
<span class="tag-xs bg-info">{{label}}</span>
{{/each}}
{{#each model.requireAnyLabelStrings as |label|}}
<span class="tag-xs bg-warning">{{label}}</span>
{{/each}}
</td>
{{#if showCluster}}
<td data-title="{{dt.cluster}}">
{{#if model.cluster}}
{{model.cluster.displayName}}
{{else}}
<b>{{t 'generic.none'}}</b>
{{/if}}
</td>
{{/if}}
<td data-title="{{dt.ip}}">
{{#copy-inline clipboardText=model.displayIp size="small"}}
{{format-ip model.displayIp}}
{{/copy-inline}}
</td>
<td data-title="{{dt.cpu}}">
{{model.cpuUsage}}
</td>
<td data-title="{{dt.memory}}">
{{model.memoryUsage}}
</td>
<td data-title="{{dt.pod}}">
{{model.podUsage}}
</td>
<td data-title="{{dt.actions}}" class="actions">
{{action-menu model=model showPrimary=false}}
</td>
</tr>
{{#if model.showTransitioningMessage}}
{{error-sub-row fullColspan=fullColspan model=model}}
{{/if}}
<tr class="sub-row {{unless expanded 'hide'}}">
<td colspan="2">{{! checkbox and expand}}</td>
<td colspan="{{sub fullColspan 3}}">
{{#liquid-if expanded}}
{{container-table
body=model.instances
stickyHeader=false
bulkActions=false
search=false
searchText=searchText
subRow=true
showNode=false
}}
{{/liquid-if}}
</td>
<td>{{! actions}}</td>
</tr>
{{#if expanded}}
<tr class="separator-row">
<td colspan="{{fullColspan}}"></td>
</tr>
{{/if}}