open-nomad/ui/app/templates/components/fs/link.hbs
Buck Doyle 2998deac50
Convert to angle bracket invocation (#8075)
This is mostly a direct application of the ember-angle-brackets-codemod.
I manually restored newlines in multi-line component invocations, usually
preserving file line length except for now-non-positional link-to @route.

I needed to rename task to taskState in some cases to avoid Ember
Concurrency naming conflicts.
2020-06-01 14:03:56 -05:00

21 lines
677 B
Handlebars

{{#if taskState}}
{{#if path}}
<LinkTo @route="allocations.allocation.task.fs" @models={{array allocation taskState path}} @activeClass="is-active">
{{yield}}
</LinkTo>
{{else}}
<LinkTo @route="allocations.allocation.task.fs-root" @models={{array allocation taskState}} @activeClass="is-active">
{{yield}}
</LinkTo>
{{/if}}
{{else}}
{{#if path}}
<LinkTo @route="allocations.allocation.fs" @models={{array allocation path}} @activeClass="is-active">
{{yield}}
</LinkTo>
{{else}}
<LinkTo @route="allocations.allocation.fs-root" @model={{allocation}} @activeClass="is-active">
{{yield}}
</LinkTo>
{{/if}}
{{/if}}