|
3 | 3 |
|
4 | 4 | <div {{bind-attr class=":host-state stateBackground"}}>{{model.displayState}}</div> |
5 | 5 | <div class="host-icon"><i {{bind-attr class=":fa :fa-lg model.stateIcon iconColor"}}></i></div> |
6 | | - <div class="host-name">{{#link-to "host" model.id}}{{model.displayName}}{{/link-to}}</div> |
| 6 | + <div class="host-name"> |
| 7 | + {{#if isMachine}} |
| 8 | + {{model.displayName}} |
| 9 | + {{else}} |
| 10 | + {{#link-to "host" model.id}}{{model.displayName}}{{/link-to}} |
| 11 | + {{/if}} |
| 12 | + </div> |
| 13 | + {{#if model.isTransitioning}} |
| 14 | + <div class="progress progress-striped active"> |
| 15 | + <div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" {{bind-attr aria-valuenow=model.displayProgress style=model.progressStyle}}> |
| 16 | + <span class="sr-only">{{model.displayProgress}}% Complete</span> |
| 17 | + </div> |
| 18 | + </div> |
| 19 | + {{/if}} |
7 | 20 | </div> |
8 | 21 |
|
9 | | -<div class="host-info clearfix"> |
10 | | - <div class="host-info-item"><i class="ss-link"></i> {{model.displayIp}}</div> |
11 | | -</div> |
| 22 | +{{#if isMachine}} |
| 23 | + <div class="machine-info"> |
| 24 | + <i class="fa fa-spinner fa-spin"></i> |
| 25 | + {{#if isActive}} |
| 26 | + Waiting for host to check in… |
| 27 | + {{else}} |
| 28 | + Setting up machine… |
| 29 | + {{/if}} |
| 30 | + </div> |
| 31 | +{{else}} |
| 32 | + <div class="host-info clearfix"> |
| 33 | + <div class="host-info-item"><i class="ss-link"></i> {{model.displayIp}}</div> |
| 34 | + {{#if model.machine}} |
| 35 | + <div class="host-info-item"><i class="ss-microwave"></i> {{model.machine.driver}}</div> |
| 36 | + {{/if}} |
| 37 | + </div> |
12 | 38 |
|
13 | | -<div class="clearfix no-resource-action-hover"> |
14 | | - {{#if dot}} |
15 | | - {{#each item in model.arrangedInstances itemController="container"}} |
16 | | - {{container-dot model=item}} |
17 | | - {{/each}} |
18 | | - {{else}} |
19 | | - {{#each item in model.arrangedInstances itemController="container"}} |
20 | | - {{container-widget model=item}} |
21 | | - {{/each}} |
22 | | - {{add-container-widget action="newContainer"}} |
23 | | - {{/if}} |
24 | | -</div> |
| 39 | + <div class="clearfix no-resource-action-hover"> |
| 40 | + {{#if dot}} |
| 41 | + {{#each item in model.arrangedInstances itemController="container"}} |
| 42 | + {{container-dot model=item}} |
| 43 | + {{/each}} |
| 44 | + {{else}} |
| 45 | + {{#each item in model.arrangedInstances itemController="container"}} |
| 46 | + {{container-widget model=item}} |
| 47 | + {{/each}} |
| 48 | + {{#if showAdd}} |
| 49 | + {{add-container-widget action="newContainer"}} |
| 50 | + {{/if}} |
| 51 | + {{/if}} |
| 52 | + </div> |
| 53 | +{{/if}} |
0 commit comments