github.com/hernad/nomad@v1.6.112/ui/app/templates/components/scale-events-accordion.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 <ListAccordion data-test-scale-events @source={{@events}} @key="time" as |a|> 7 <a.head 8 @buttonLabel="details" 9 @isExpandable={{a.item.hasMeta}} 10 class="with-columns" 11 > 12 <div class="columns inline-definitions"> 13 <div class="column is-3"> 14 <span class="icon-field"> 15 <span 16 class="icon-container" 17 title="{{if a.item.error "Error event"}}" 18 data-test-error={{a.item.error}} 19 > 20 {{#if a.item.error}} 21 {{x-icon "cancel-circle-fill" class="is-danger"}} 22 {{/if}} 23 </span> 24 <span data-test-time title="{{format-ts a.item.time}}"> 25 {{format-month-ts a.item.time}} 26 </span> 27 </span> 28 </div> 29 <div class="column is-2"> 30 {{#if a.item.hasCount}} 31 <span 32 data-test-count-icon 33 class="tooltip" 34 aria-label="Count 35 {{if a.item.increased "increased" "decreased"}} 36 to 37 {{a.item.count}}" 38 > 39 {{#if a.item.increased}} 40 {{x-icon "arrow-up" class="is-danger"}} 41 {{else}} 42 {{x-icon "arrow-down" class="is-primary"}} 43 {{/if}} 44 </span> 45 <span data-test-count> 46 {{a.item.count}} 47 </span> 48 {{/if}} 49 </div> 50 <div class="column" data-test-message> 51 {{a.item.message}} 52 </div> 53 </div> 54 </a.head> 55 <a.body @fullBleed={{true}}> 56 <JsonViewer @json={{a.item.meta}} @fluidHeight={{true}} /> 57 </a.body> 58 </ListAccordion>