open-nomad/ui/app/templates/components/allocation-stat.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
614 B
Handlebars
Raw Normal View History

{{#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">
{{x-icon "alert-triangle" class="is-warning"}}
</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}}