mirror of https://github.com/rancher/ui.git
64 lines
2.2 KiB
Handlebars
64 lines
2.2 KiB
Handlebars
<tr class="main-row">
|
|
<td>
|
|
</td>
|
|
<td data-title="{{dt.state}}" class="state">
|
|
{{badge-state model=model}}
|
|
</td>
|
|
<td data-title="{{dt.name}}">
|
|
{{#if model.defaultProject}}
|
|
<a href="{{href-to 'authenticated.project.index' model.defaultProject.id}}" {{action "switchToProject" model.defaultProject.id}}>{{model.displayName}}</a>
|
|
{{else}}
|
|
{{model.displayName}}
|
|
{{/if}}
|
|
</td>
|
|
{{#if (eq model.state "inactive")}}
|
|
<td colspan="4" class="text-center">
|
|
{{#if (or model.registrationToken.hostCommand model.registrationToken.clusterCommand)}}
|
|
{{#if model.registrationToken.hostCommand}}
|
|
<div class="input-group inline-block" style="vertical-align: middle;" >
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-sm bg-primary icon-btn" onclick={{action (action launchOnCluster) model}}>
|
|
<span class="darken"><i class="icon icon-host"></i></span>
|
|
<span>{{t 'clusterRow.addHost'}}</span>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
{{/if}}
|
|
{{#if model.registrationToken.clusterCommand}}
|
|
<div class="input-group inline-block" style="vertical-align: middle;" >
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-sm bg-primary icon-btn ml-20" onclick={{action (action useKubernetes) model}}>
|
|
<span class="darken"><i class="icon icon-download"></i></span>
|
|
<span>{{t 'clusterRow.importCluster'}}</span>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
{{/if}}
|
|
{{else}}
|
|
{{t 'clusterRow.noHosts'}}
|
|
{{/if}}
|
|
</td>
|
|
{{else}}
|
|
<td colspan="4" class="text-center text-muted">
|
|
Counts Coming Soon
|
|
</td>
|
|
<!--
|
|
<td data-title="{{dt.hosts}}" class="text-center">
|
|
{{model.numHosts}}
|
|
</td>
|
|
<td data-title="{{dt.cpu}}" class="text-center">
|
|
{{model.numGhz}} GHz
|
|
</td>
|
|
<td data-title="{{dt.memory}}" class="text-center">
|
|
{{model.numMem}} GiB
|
|
</td>
|
|
<td data-title="{{dt.storage}}" class="text-center">
|
|
{{model.numStorage}} GiB
|
|
</td>
|
|
-->
|
|
{{/if}}
|
|
<td data-title="{{dt.actions}} "class="actions">
|
|
{{action-menu model=model}}
|
|
</td>
|
|
</tr>
|