open-nomad/ui/app/templates/components/fs/link.hbs
Phil Renaud 99185e2d8f
[ui, compliance] Remove the newline after .hbs copyright headers (#16861)
* Remove the newline after .hbs copyright headers

* Trying with the whitespace control char
2023-04-14 13:08:13 -04:00

26 lines
808 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
{{#if this.taskState}}
{{#if this.path}}
<LinkTo @route="allocations.allocation.task.fs" @models={{array this.allocation this.taskState this.path}} @activeClass="is-active">
{{yield}}
</LinkTo>
{{else}}
<LinkTo @route="allocations.allocation.task.fs-root" @models={{array this.allocation this.taskState}} @activeClass="is-active">
{{yield}}
</LinkTo>
{{/if}}
{{else}}
{{#if this.path}}
<LinkTo @route="allocations.allocation.fs" @models={{array this.allocation this.path}} @activeClass="is-active">
{{yield}}
</LinkTo>
{{else}}
<LinkTo @route="allocations.allocation.fs-root" @model={{this.allocation}} @activeClass="is-active">
{{yield}}
</LinkTo>
{{/if}}
{{/if}}