mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
* First batch of x-icon to hds::icons * Bunch more icons and a note for jobrow * Fixes for tests that depended on specific action names * Icon-bumped-down specified to solo-icons in table cells * Class-basing the icon bump and deferring icon svg load in env * Exec window sidebar icons were looking a little off
24 lines
735 B
Handlebars
24 lines
735 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
{{#if this.allocation.isRunning}}
|
|
{{#if (and (not this.stat) this.isLoading)}}
|
|
…
|
|
{{else if this.error}}
|
|
<span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats">
|
|
<Hds::Icon @name="alert-triangle-fill" @color="warning" class="icon-vertical-bump-down" />
|
|
</span>
|
|
{{else}}
|
|
<div class="inline-chart tooltip" role="tooltip" aria-label="{{this.formattedStat}} / {{this.formattedReserved}}">
|
|
<progress
|
|
class="progress is-small {{this.statClass}}"
|
|
value="{{this.stat.percent}}"
|
|
max="1">
|
|
{{this.stat.percent}}
|
|
</progress>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|