2022-08-29 18:04:55 +00:00
|
|
|
<tr
|
|
|
|
data-test-service-row
|
|
|
|
data-test-service-name={{@service.name}}
|
|
|
|
data-test-num-allocs={{@service.instances.length}}
|
|
|
|
data-test-service-provider={{@service.provider}}
|
|
|
|
data-test-service-level={{@service.level}}
|
|
|
|
{{on "click" (fn this.gotoService @service)}}
|
|
|
|
class={{if (eq @service.provider "nomad") "is-interactive"}}
|
|
|
|
>
|
2022-08-26 03:22:55 +00:00
|
|
|
<td
|
|
|
|
{{keyboard-shortcut
|
|
|
|
enumerated=true
|
|
|
|
action=(action "gotoService" @service)
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{{#if (eq @service.provider "nomad")}}
|
2022-08-31 14:50:40 +00:00
|
|
|
<FlightIcon @name="nomad-color" />
|
2022-08-26 03:22:55 +00:00
|
|
|
<LinkTo class="is-primary" @route="jobs.job.services.service" @model={{@service}} @query={{hash level=@service.level}}>{{@service.name}}</LinkTo>
|
|
|
|
{{else}}
|
2022-08-31 14:50:40 +00:00
|
|
|
<FlightIcon @name="consul-color" />
|
2022-09-12 14:00:30 +00:00
|
|
|
{{#if (and (eq @service.provider "consul") this.consulRedirectLink)}}
|
|
|
|
<a class="is-primary" href={{this.consulRedirectLink}} target="_blank" rel="noopener noreferrer">
|
|
|
|
{{@service.name}}
|
|
|
|
</a>
|
|
|
|
{{else}}
|
|
|
|
{{@service.name}}
|
|
|
|
{{/if}}
|
2022-08-26 03:22:55 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{@service.level}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{#each @service.tags as |tag|}}
|
|
|
|
<span class="tag">{{tag}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{#if (eq @service.provider "nomad")}}
|
|
|
|
{{@service.instances.length}} {{pluralize "allocation" @service.instances.length}}
|
|
|
|
{{else}}
|
|
|
|
--
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|