github.com/hernad/nomad@v1.6.112/ui/app/templates/components/allocation-stat.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  {{#if this.allocation.isRunning}}
     7    {{#if (and (not this.stat) this.isLoading)}}
     8      …
     9    {{else if this.error}}
    10      <span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats">
    11        {{x-icon "alert-triangle" class="is-warning"}}
    12      </span>
    13    {{else}}
    14      <div class="inline-chart tooltip" role="tooltip" aria-label="{{this.formattedStat}} / {{this.formattedReserved}}">
    15        <progress
    16          class="progress is-small {{this.statClass}}"
    17          value="{{this.stat.percent}}"
    18          max="1">
    19          {{this.stat.percent}}
    20        </progress>
    21      </div>
    22    {{/if}}
    23  {{/if}}