github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/components/chart-primitives/v-annotations.hbs (about) 1 <div data-test-annotations class="line-chart-annotations" style={{this.chartAnnotationsStyle}} ...attributes> 2 {{#each this.processed key=@key as |annotation|}} 3 <div data-test-annotation class="chart-annotation {{annotation.iconClass}} {{annotation.staggerClass}}" style={{annotation.style}}> 4 <button 5 type="button" 6 title={{annotation.label}} 7 class="indicator {{if (or 8 (and @key (eq-by @key annotation.annotation @activeAnnotation)) 9 (and (not @key) (eq annotation.annotation @activeAnnotation)) 10 ) "is-active"}}" 11 {{on "click" (fn this.selectAnnotation annotation.annotation)}}> 12 {{x-icon annotation.icon}} 13 </button> 14 <div class="line" /> 15 </div> 16 {{/each}} 17 </div>