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

19 lines
562 B
Handlebars
Raw Normal View History

{{#if allocation.isRunning}}
{{#if (and (not stat) isLoading)}}
…
{{else if error}}
<span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats">
{{x-icon "warning" class="is-warning"}}
</span>
{{else}}
<div class="inline-chart tooltip" role="tooltip" aria-label="{{formattedStat}} / {{formattedReserved}}">
<progress
class="progress is-small {{statClass}}"
value="{{stat.percent}}"
max="1">
{{stat.percent}}
</progress>
</div>
{{/if}}
{{/if}}