open-nomad/ui/app/templates/components/job-page/parts/summary-legend-item.hbs

18 lines
508 B
Handlebars
Raw Normal View History

<div class="legend-item">
<span
class="color-swatch {{if @datum.className @datum.className (concat "swatch-" @index)}}"
></span>
<span class="text">
<span class="value" data-test-legend-value="{{@datum.className}}">
{{@datum.value}}
</span>
<span>
{{@datum.label}}
</span>
</span>
{{#if @datum.help}}
<span class="tooltip multiline" role="tooltip" aria-label="{{@datum.help}}">
{{x-icon "info-circle-outline" class="is-faded"}}
</span>
{{/if}}
</div>