github.com/hernad/nomad@v1.6.112/ui/app/components/job-status/individual-allocation.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  <Hds::TooltipButton @text="{{get @allocation "shortId"}}" aria-label="Allocation" @extraTippyOptions={{hash trigger=(if (eq @status "unplaced") "manual")}}>
     7    <ConditionalLinkTo
     8      @condition={{not (eq @status "unplaced")}}
     9      @route="allocations.allocation"
    10      @model={{@allocation.id}}
    11      @class="represented-allocation {{@status}} {{@health}} {{@canary}}"
    12      @label="View allocation"
    13    >
    14      {{#unless @steady}}
    15        {{#if (eq @canary "canary")}}
    16          <span class="alloc-canary-indicator" />
    17        {{/if}}
    18        {{#if (eq @status "running")}}
    19          <span class="alloc-health-indicator">
    20            {{#if (eq @health "healthy")}}
    21              <FlightIcon @name="check" @color="white" />
    22            {{else if (eq @health "unhealthy")}}
    23              <FlightIcon @name="x" @color="white" />
    24            {{else}}
    25              <FlightIcon @name="running" @color="white" />
    26            {{/if}}
    27          </span>
    28        {{/if}}
    29      {{/unless}}
    30    </ConditionalLinkTo>
    31  </Hds::TooltipButton>