github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/templates/components/allocation-stat.hbs (about)

     1  {{#if this.allocation.isRunning}}
     2    {{#if (and (not this.stat) this.isLoading)}}
     3      …
     4    {{else if this.error}}
     5      <span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats">
     6        {{x-icon "alert-triangle" class="is-warning"}}
     7      </span>
     8    {{else}}
     9      <div class="inline-chart tooltip" role="tooltip" aria-label="{{this.formattedStat}} / {{this.formattedReserved}}">
    10        <progress
    11          class="progress is-small {{this.statClass}}"
    12          value="{{this.stat.percent}}"
    13          max="1">
    14          {{this.stat.percent}}
    15        </progress>
    16      </div>
    17    {{/if}}
    18  {{/if}}