github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/templates/components/task-row.hbs (about) 1 <td class="is-narrow"> 2 {{#if (not task.driverStatus.healthy)}} 3 <span data-test-icon="unhealthy-driver" class="tooltip text-center" aria-label="{{task.driver}} is unhealthy"> 4 {{x-icon "warning" class="is-warning"}} 5 </span> 6 {{/if}} 7 </td> 8 <td data-test-name class="nowrap"> 9 {{#link-to "allocations.allocation.task" task.allocation task class="is-primary"}} 10 {{task.name}} 11 {{#if task.isConnectProxy}} 12 {{proxy-tag class="bumper-left"}} 13 {{/if}} 14 {{/link-to}} 15 </td> 16 <td data-test-state>{{task.state}}</td> 17 <td data-test-message> 18 {{#if task.events.lastObject.message}} 19 {{task.events.lastObject.message}} 20 {{else}} 21 <em>No message</em> 22 {{/if}} 23 </td> 24 <td data-test-time>{{format-ts task.events.lastObject.time}}</td> 25 <td data-test-volumes> 26 <ul> 27 {{#each task.task.volumeMounts as |volume|}} 28 <li data-test-volume> 29 <strong>{{volume.volume}}:</strong> 30 {{#if volume.isCSI}} 31 {{#link-to "csi.volumes.volume" volume.volume (query-params volumeNamespace=volume.namespace.id)}} 32 {{volume.source}} 33 {{/link-to}} 34 {{else}} 35 {{volume.source}} 36 {{/if}} 37 </li> 38 {{/each}} 39 </ul> 40 </td> 41 <td data-test-ports> 42 <ul> 43 {{#let task.resources.networks.firstObject as |network|}} 44 {{#each network.ports as |port|}} 45 <li data-test-port> 46 <strong>{{port.name}}:</strong> 47 <a href="http://{{network.ip}}:{{port.port}}" target="_blank" rel="noopener noreferrer">{{network.ip}}:{{port.port}}</a> 48 </li> 49 {{/each}} 50 {{/let}} 51 </ul> 52 </td> 53 <td data-test-cpu class="is-1 has-text-centered"> 54 {{#if task.isRunning}} 55 {{#if (and (not cpu) fetchStats.isRunning)}} 56 ... 57 {{else if statsError}} 58 <span class="tooltip text-center" role="tooltip" aria-label="Couldn't collect stats"> 59 {{x-icon "warning" class="is-warning"}} 60 </span> 61 {{else}} 62 <div class="inline-chart is-small tooltip" role="tooltip" aria-label="{{cpu.used}} / {{taskStats.reservedCPU}} MHz"> 63 <progress 64 class="progress is-info is-small" 65 value="{{cpu.percent}}" 66 max="1"> 67 {{cpu.percent}} 68 </progress> 69 </div> 70 {{/if}} 71 {{/if}} 72 </td> 73 <td data-test-mem class="is-1 has-text-centered"> 74 {{#if task.isRunning}} 75 {{#if (and (not memory) fetchStats.isRunning)}} 76 ... 77 {{else if statsError}} 78 <span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats"> 79 {{x-icon "warning" class="is-warning"}} 80 </span> 81 {{else}} 82 <div class="inline-chart tooltip" role="tooltip" aria-label="{{format-bytes memory.used}} / {{taskStats.reservedMemory}} MiB"> 83 <progress 84 class="progress is-danger is-small" 85 value="{{memory.percent}}" 86 max="1"> 87 {{memory.percent}} 88 </progress> 89 </div> 90 {{/if}} 91 {{/if}} 92 </td>