open-nomad/ui/app/components/primary-metric/current-value.hbs

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

22 lines
544 B
Handlebars
Raw Normal View History

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
<div class="columns secondary-graphic">
<div class="column">
<div class="inline-chart" data-test-percentage-bar>
<progress
2021-03-22 06:01:22 +00:00
data-test-current-value
class="progress {{@chartClass}} is-small"
2021-11-05 16:55:54 +00:00
value="{{or @percent 0}}"
max="1">
{{@percent}}
</progress>
</div>
</div>
<div class="column is-minimum">
<span class="nowrap" data-test-percentage>{{format-percentage @percent total=1}}</span>
</div>
</div>