|
1 | | -{{partial "transitioning-progress"}} |
| 1 | +<aside> |
| 2 | + <label>Container</label> |
| 3 | + {{resource-actions-menu model=this choices=availableActions classNames="pull-right"}} |
| 4 | + <h3 class="force-wrap">{{displayName}}</h3> |
2 | 5 |
|
3 | | -<section> |
4 | | - <div class="row"> |
5 | | - <div class="col-sm-6"> |
6 | | - <h3>{{displayName}}</h3> |
7 | | - <div class="text-muted"> |
8 | | - {{displayIp}} {{zero-clipboard text=displayIp}} |
9 | | - </div> |
10 | | - <div class="text-muted">{{imageUuid}} {{zero-clipboard text=imageUuid}}</div> |
11 | | - </div> |
12 | | - <div class="col-sm-6 text-right"> |
13 | | - <h3 {{bind-attr class=":instance-status stateColor"}}> |
14 | | - <i {{bind-attr class="stateIcon"}}></i> {{displayState}} |
15 | | - </h3> |
16 | | - <div {{bind-attr class=":force-wrap isError:text-danger:text-muted showTransitioningMessage::hide"}}> |
17 | | - {{transitioningMessage}} |
18 | | - </div> |
19 | | - <div class="instance-actions"> |
20 | | - {{resource-actions model=this choices=availableActions}} |
21 | | - </div> |
22 | | - </div> |
| 6 | + <hr/> |
| 7 | + |
| 8 | + {{#if description}} |
| 9 | + <label style="margin-top: 10px;">Description</label> |
| 10 | + <p>{{description}}</p> |
| 11 | + <hr/> |
| 12 | + {{/if}} |
| 13 | + |
| 14 | + <div class="clearfix"> |
| 15 | + <label>Info</label> |
23 | 16 | </div> |
| 17 | + |
| 18 | + <ul class="list-circles"> |
| 19 | + <li> |
| 20 | + <i {{bind-attr class=":fa-fw stateIcon"}}></i> |
| 21 | + {{displayState}} |
| 22 | + {{#if isTransitioning}} |
| 23 | + <div class="progress progress-striped active" style="height: 10px; border: 0;"> |
| 24 | + <div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" {{bind-attr aria-valuenow=displayProgress style=progressStyle}}> |
| 25 | + <span class="sr-only">{{displayProgress}}% Complete</span> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + {{/if}} |
| 29 | + {{#if showTransitioningMessage}} |
| 30 | + <div class="force-wrap"> |
| 31 | + {{transitioningMessage}} |
| 32 | + </div> |
| 33 | + {{/if}} |
| 34 | + </li> |
| 35 | + |
| 36 | + <li> |
| 37 | + <i class="fa-fw ss-link"></i> |
| 38 | + {{displayIp}} |
| 39 | + </li> |
| 40 | + </ul> |
| 41 | +</aside> |
| 42 | + |
| 43 | +<section> |
| 44 | + <div class="text-muted">{{imageUuid}} {{zero-clipboard text=imageUuid}}</div> |
24 | 45 | </section> |
25 | 46 |
|
26 | | -{{#if description}} |
27 | | - <section> |
28 | | - <div class="well"> |
29 | | - <label>Description</label> |
30 | | - {{description}} |
31 | | - </div> |
32 | | - </section> |
33 | | -{{/if}} |
| 47 | +<section> |
| 48 | + {{partial "stats-cpu-memory"}} |
| 49 | +</section> |
| 50 | + |
| 51 | +<section> |
| 52 | + <div class="well"> |
| 53 | + <label>Ports</label> |
| 54 | + <table class="grid fixed"> |
| 55 | + <thead> |
| 56 | + <tr> |
| 57 | + <th width="120">State</th> |
| 58 | + <th>IP Address</th> |
| 59 | + <th>Public (on Host)</th> |
| 60 | + <th>Private (in Container)</th> |
| 61 | + <th>Protocol</th> |
| 62 | + </tr> |
| 63 | + </thead> |
| 64 | + <tbody> |
| 65 | + {{#each port in ports itemController="port"}} |
| 66 | + <tr> |
| 67 | + <td> |
| 68 | + <span {{bind-attr class=":badge :state port.stateBackground"}}> |
| 69 | + {{port.displayState}} |
| 70 | + </span> |
| 71 | + </td> |
| 72 | + <td> |
| 73 | + {{port.displayPublicIp}} |
| 74 | + </td> |
| 75 | + <td> |
| 76 | + {{port.publicPort}} |
| 77 | + </td> |
| 78 | + <td> |
| 79 | + {{port.privatePort}} |
| 80 | + </td> |
| 81 | + <td> |
| 82 | + {{upper-case port.protocol}} |
| 83 | + </td> |
| 84 | + </tr> |
| 85 | + {{else}} |
| 86 | + <tr> |
| 87 | + <td colspan="5"> |
| 88 | + <div class="text-muted text-center">This container has no ports.</div> |
| 89 | + </td> |
| 90 | + </tr> |
| 91 | + {{/each}} |
| 92 | + </tbody> |
| 93 | + </table> |
| 94 | + </div> |
| 95 | +</section> |
34 | 96 |
|
35 | 97 | <section> |
36 | 98 | <div class="well"> |
|
93 | 155 | </table> |
94 | 156 | </div> |
95 | 157 | </section> |
96 | | - |
97 | | -<section> |
98 | | - {{partial "stats-cpu-memory"}} |
99 | | -</section> |
|
0 commit comments