github.com/hernad/nomad@v1.6.112/ui/app/templates/components/fs/link.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  {{#if this.taskState}}
     7    {{#if this.path}}
     8      <LinkTo @route="allocations.allocation.task.fs" @models={{array this.allocation this.taskState this.path}} @activeClass="is-active">
     9        {{yield}}
    10      </LinkTo>
    11    {{else}}
    12      <LinkTo @route="allocations.allocation.task.fs-root" @models={{array this.allocation this.taskState}} @activeClass="is-active">
    13        {{yield}}
    14      </LinkTo>
    15    {{/if}}
    16  {{else}}
    17    {{#if this.path}}
    18      <LinkTo @route="allocations.allocation.fs" @models={{array this.allocation this.path}} @activeClass="is-active">
    19        {{yield}}
    20      </LinkTo>
    21    {{else}}
    22      <LinkTo @route="allocations.allocation.fs-root" @model={{this.allocation}} @activeClass="is-active">
    23        {{yield}}
    24      </LinkTo>
    25    {{/if}}
    26  {{/if}}