2998deac50
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.
21 lines
677 B
Handlebars
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}} |