open-nomad/ui/app/templates/components/exec/task-contents.hbs
Buck Doyle 244157786a
Add explicit this to templates (#8388)
This is the result of running the no-implicit-this-codemod, some manual fixes,
and the addition of a linting rule to prevent future ambiguity.
2020-07-09 15:19:07 -05:00

16 lines
457 B
Handlebars

<div class="border-and-label">
<div class="border"></div>
<div class="task-label">{{this.task.name}}</div>
{{#if this.active}}
<svg width="20" height="20" class="is-active" data-test-task-active>
<circle cx="10" cy="10" r="6" />
</svg>
{{/if}}
</div>
{{#if this.shouldOpenInNewWindow}}
<span class="tooltip" aria-label="Open in a new window">
{{x-icon "exit" class="show-on-hover"}}
</span>
{{else}}
{{x-icon "exit"}}
{{/if}}